/* RECOVERED STYLE - 2026-01-31 */
:root {
    --primary-color: #25d366;
    /* WhatsApp Green */
    --accent-color: #3498db;
    /* Default Accent Blue */
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 15px;
    left: 1%;
    width: 98%;
    z-index: 1000;
    padding: 0.8rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: background 0.4s, border-color 0.4s, padding 0.4s;
}

.logo img {
    height: 45px;
    filter: brightness(1.8) saturate(1.5) contrast(0.9);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #888;
    /* Gray color */
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}



/* Editorial Content Sections */
.dynamic-section {
    padding: 180px 10%;
    background: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

#about {
    background: #0f172a;
    color: #fff;
}

#about .section-text h2 {
    color: #fff;
}

#about .section-text p {
    color: rgba(255, 255, 255, 0.7);
}

#about .section-side-deco {
    color: rgba(255, 255, 255, 0.03);
}

#services {
    background: #fff;
    color: var(--text-main);
}

.section-container {
    max-width: 1300px;
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

@media (min-width: 1201px) {
    #about .section-container {
        grid-template-columns: 1fr 1fr;
        gap: 100px;
    }
}

#about .section-text h2 {
    font-size: 4.5rem;
    margin-bottom: 3rem;
    line-height: 1;
}

.section-tag {
    position: absolute;
    top: -40px;
    left: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-color);
}

.section-side-deco {
    font-size: 20rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    position: absolute;
    bottom: -50px;
    right: -20px;
    user-select: none;
    line-height: 0.8;
}

.section-text h2 {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 0.9;
    margin-bottom: 4rem;
    position: relative;
}

.section-text h2 span {
    display: block;
    -webkit-text-stroke: 1px currentColor;
    color: transparent;
}

.section-text p {
    font-size: 1.3rem;
    color: var(--text-main);
    line-height: 2;
    margin-bottom: 2.5rem;
}

/* Timeline/Stats Layout for History */
.timeline {
    border-left: 2px solid var(--accent-color);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.timeline-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Services Features Grid */
.services-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.feature-box {
    padding: 50px;
    background: #f8f8f8;
    border: none;
    border-radius: 0;
    position: relative;
    transition: all 0.5s ease;
}

.feature-box:hover {
    background: #fff;
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
}

.feature-box h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature-box p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 3rem;
    color: var(--bg-dark);
    position: relative;
    line-height: 1.2;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Hero */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero_bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero button {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 2s infinite;
}

.hero button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.6);
    background: #2980b9;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-img {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-img:hover img {
    transform: scale(1.05);
}

/* About Section */
.about {
    background: #fafafa;
}

/* Botón WhatsApp Flotante (Izquierda) */
.wsp-float {
    position: fixed;
    bottom: 80px;
    left: 30px;
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.wsp-float:hover {
    transform: scale(1.1);
}

.wsp-float svg {
    fill: white;
    width: 32px;
}

/* Chatbot Floating (Derecha) */
.bot-container {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 1000;
}

.bot-toggle {
    background: #007bff;
    height: 60px;
    padding: 0 20px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    animation: bounceBot 3s infinite;
}

.bot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.8);
}

.bot-toggle svg {
    fill: white;
    width: 25px;
}

.bot-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
}

@keyframes bounceBot {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.bot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    will-change: transform, opacity;
}

.bot-header {
    background: var(--accent-color);
    color: white;
    padding: 1.2rem;
    font-weight: 600;
}

.bot-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bot-msg {
    padding: 0.8rem;
    border-radius: 10px;
    max-width: 85%;
    font-size: 0.9rem;
}

.bot-msg.bot {
    background: #f1f5f9;
    align-self: flex-start;
}

.bot-msg.user {
    background: var(--accent-color);
    color: white;
    align-self: flex-end;
}

/* Typing Indicator Animation */
.typing {
    display: flex;
    gap: 5px;
    padding: 0.8rem 1rem;
    align-items: center;
    width: fit-content;
}

.dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.bot-input-area {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.bot-input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}

.bot-send {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bot-send svg {
    width: 18px;
    fill: white;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer & Map */
footer {
    background: #fff;
    color: var(--text-main);
    padding: 60px 10%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.footer-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-main);
    opacity: 0.8;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    border: none;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .section-text h2 {
        font-size: 4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .services-features {
        grid-template-columns: 1fr;
    }

    .feature-box {
        padding: 40px 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dynamic-section {
        padding: 80px 5%;
    }

    .section-text h2 {
        font-size: 2.8rem;
    }

    .section-side-deco {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}