:root {
    --primary-color: #7D215E; /* Creatividad - Púrpura */
    --secondary-color: #207D75; /* Equilibrio - Teal */
    --accent-color: #F2C94C; /* Inspiración - Amarillo */
    --text-dark: #1A1A1A;
    --text-light: #F8FAF7;
    --bg-light: #FFFFFF;
    --bg-soft: #F9FBFB;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navbar */
/* Navbar Sticky con Glassmorphism */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section con Animación Fluida */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero {
    min-height: 70vh; /* Altura reducida para dinamismo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 10% 80px;
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), #4e143c, #134d48);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero p:first-child {
    font-size: 3.8rem !important; /* Tamaño aumentado */
    font-weight: 300;
}

.hero p strong {
    font-weight: 900;
}

.hero p:nth-child(2) {
    font-size: 1.7rem !important; /* Párrafo descriptivo más grande */
    max-width: 850px;
    line-height: 1.5;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 22px 50px; /* Más robusto */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    background-color: #ffd861;
}

/* Sectors Section */
.section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.section-title p {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sector-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.sector-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sector-card:hover img {
    transform: scale(1.1);
}

.sector-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.sector-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.sector-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Services (The Lab Method) */
.services {
    background-color: var(--bg-soft);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Why Us Section */
.why-us {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.why-us h2 {
    color: white;
}

.formula-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.formula-box p {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    outline: none;
}

.contact-form input:focus {
    border-color: var(--secondary-color);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

/* Footer */
footer {
    padding: 50px 8%;
    text-align: center;
    background: #111;
    color: #555;
    font-size: 0.8rem;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Logo Styles */
.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--primary-color);
    line-height: 0.8;
    letter-spacing: 5px;
}

.logo-subtitle {
    font-size: 0.9rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 700;
    margin-top: 10px;
}

/* Hero Content Styles */
.hero-title {
    font-size: 2.5rem;
    max-width: 950px;
    line-height: 1.2;
    margin-top: 0;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.4rem;
    max-width: 800px;
    line-height: 1.6;
    margin-top: 20px;
    color: rgba(255,255,255,0.95);
}

/* Footer Styles */
footer p {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-title { font-size: 1.5rem !important; letter-spacing: 2px !important; }
    .logo-subtitle { font-size: 0.7rem !important; letter-spacing: 3px !important; margin-top: 5px !important; }
    
    .hero { padding: 60px 5% 30px !important; min-height: auto !important; }
    .hero-title { font-size: 2.2rem !important; margin-bottom: 10px !important; }
    .hero-subtitle { font-size: 0.95rem !important; color: rgba(255,255,255,0.85) !important; text-align: center !important; }
    .hero .cta-button { font-size: 0.9rem !important; padding: 12px 25px !important; margin-top: 25px !important; }
    
    .section { padding: 40px 5% !important; }
    .section-title h2 { font-size: 1.6rem !important; }
    
    /* Estilo para "NUESTROS SERVICIOS" en móvil */
    .section-title p:first-child { 
        font-size: 0.7rem !important; 
        letter-spacing: 2px !important; 
        text-align: center !important;
        margin-bottom: 5px !important;
    }
    
    /* Descripción de servicios con equilibrio justo */
    .section-title p:last-child { 
        font-size: 0.95rem !important; 
        text-align: center !important; 
        line-height: 1.6 !important;
        padding: 0 5% !important; 
        margin: 20px auto !important;
    }

    .nav-links { 
        display: flex !important; 
        flex-direction: row !important;
        justify-content: flex-start !important; 
        align-items: center !important;
        gap: 15px !important;
        margin: 12px 0 0 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }
    
    .nav-links li { margin: 0 !important; }
    .nav-links a { font-size: 0.85rem !important; font-weight: 700 !important; }
    
    /* Iconos sociales más grandes */
    .nav-links li:last-child a {
        font-size: 1.3rem !important;
    }
    
    .contact-container { grid-template-columns: 1fr; }
    nav { 
        padding: 15px 8% !important; 
        flex-direction: column !important;
        align-items: flex-start !important; 
        gap: 2px !important;
    }
    
    .whatsapp-float {
        bottom: 15px !important;
        right: 15px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 28px !important;
    }
}
