/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-color: #42A5F5; /* Azul del logo "ST" */
    --secondary-color: #555555; /* Gris oscuro del logo */
    --light-bg: #FDFEFE;
    --light-card: #ffffff;
    --light-text: #333333;
    --font-primary: 'Roboto', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --shadow: 0 15px 45px rgba(0, 0, 0, 0.1); /* Sombra más moderna */
    --radius: 12px; /* Radio ligeramente mayor para modernidad */
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding-top: 80px;
    background-color: var(--light-bg);
    color: var(--light-text);
    transition: var(--transition);
}

/* --- NUEVO: SCROLL REVEAL ANIMATION --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Curva de transición moderna */
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Aplicar un pequeño delay a los elementos internos de las grillas para un efecto escalonado */
.servicios-grid .scroll-reveal, .blog-grid .scroll-reveal {
    transition-delay: 0.1s;
}
.servicios-grid .scroll-reveal:nth-child(2), .blog-grid .scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.servicios-grid .scroll-reveal:nth-child(3), .blog-grid .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.servicios-grid .scroll-reveal:nth-child(4) { transition-delay: 0.4s; }

/* --- HEADER --- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(253, 254, 254, 0.95); /* Opacidad alta para modernidad */
    backdrop-filter: blur(8px);
    box-shadow: none; /* Sombra inicial desactivada */
    z-index: 1000;
    transition: all 0.4s ease-in-out;
}
/* Efecto de Header Dinámico al hacer scroll */
.sticky-header.scrolled {
    height: 70px; /* Tamaño ligeramente más pequeño */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--light-card);
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
}
.logo-svg-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-svg-container svg {
    width: 150px; 
    height: 60px;
    display: block;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    letter-spacing: 0.5px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.toggle-theme { display: none !important; } 
.menu-btn { display: none; }

/* --- GENERAL SECTIONS & TITLES --- */
main { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.section-title {
    font-family: var(--font-accent);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}
.section-container { margin-bottom: 6rem; }

/* --- HERO SECTION --- */
.hero-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    min-height: calc(85vh - 80px);
    margin-top: -5rem;
}
.hero-content { flex: 1.2; }
.hero-content h1 {
    font-family: var(--font-accent);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-content .highlight { color: var(--primary-color); }
.hero-content p { font-size: 1.2rem; color: #555; margin-bottom: 2.5rem; line-height: 1.7; }
.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(66, 165, 245, 0.3);
}
.cta-button:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(66, 165, 245, 0.4); }
.hero-image { flex: 1; text-align: center; }
.hero-image img {
    max-width: 100%;
    border-radius: var(--radius);
}

/* --- SERVICES SECTION --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.servicio-card {
    background: var(--light-card);
    padding: 2.5rem;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Sombra sutil */
    transition: var(--transition);
    border: 1px solid #eee;
}
.servicio-card:hover { 
    transform: translateY(-8px); 
    border-top: 4px solid var(--primary-color); /* Borde superior con color primario */
    border-color: var(--primary-color);
    box-shadow: var(--shadow); /* Sombra moderna en hover */
}
.servicio-icon { 
    font-size: 3.5rem; 
    color: var(--primary-color); 
    margin-bottom: 1.5rem; 
    transition: var(--transition); 
}
.servicio-card:hover .servicio-icon { transform: scale(1.1); }
.servicio-card h3 {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.servicio-card p { font-size: 1rem; color: #666; line-height: 1.6; }

/* --- EXPERTISE SECTION --- */
.about-section {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-content { flex: 1.5; }
.about-content .section-title { text-align: left; }
.about-content .section-title::after { left: 0; transform: translateX(0); }
.about-content p { margin-bottom: 1.5rem; line-height: 1.8; font-size: 1.1rem; }
.tech-list { list-style: none; padding: 0; margin-bottom: 2rem; }
.tech-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 1.1rem; }
.tech-list i { color: var(--secondary-color); font-size: 1.2rem; }
.cta-button-secondary {
    background: var(--secondary-color);
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}
.cta-button-secondary:hover { background: #333333; transform: translateY(-3px); }

/* --- TIPS SECTION --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-post {
    background: var(--light-card);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
}
.blog-post:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.blog-post img { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 1.5rem; }
.blog-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem; font-family: var(--font-accent); }
.blog-content p { font-size: 0.95rem; color: #666; margin-bottom: 1rem; line-height: 1.6; }
.blog-content a { color: var(--primary-color); text-decoration: none; font-weight: 700; }
.blog-content a i { transition: var(--transition); }
.blog-content a:hover i { transform: translateX(5px); }

/* --- CONTACT SECTION --- */
.contact-section {
    display: flex;
    gap: 3rem;
    background: var(--primary-color);
    color: #fff;
    padding: 5rem 4rem;
    border-radius: var(--radius);
}
.contact-content .section-title { color: #fff; text-align: left; }
.contact-content .section-title::after { background: var(--secondary-color); }
.contact-info { margin-top: 2rem; }
.contact-info p { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; font-size: 1.1rem; }
.contact-info i { color: var(--secondary-color); font-size: 1.5rem; width: 25px; text-align: center; }
.map-container { flex: 1.2; border-radius: var(--radius); overflow: hidden; min-height: 400px; }

/* --- FOOTER --- */
footer {
    background: #111;
    color: #aaa;
    padding: 2.5rem 2rem;
    text-align: center;
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.social-links { margin-top: 1rem; }
.social-links a {
    color: #aaa;
    margin: 0 0.8rem;
    font-size: 1.5rem;
    transition: var(--transition);
}
.social-links a:hover { color: var(--secondary-color); }

/* --- WHATSAPP FLOAT BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: #128C7E;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-section, .about-section { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 3rem; }
    .about-content .section-title, .contact-content .section-title { text-align: center; }
    .about-content .section-title::after, .contact-content .section-title::after { left: 50%; transform: translateX(-50%); }
    .contact-section { flex-direction: column; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .sticky-header { height: 70px; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--light-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: var(--transition);
    }
    .nav-links.active { left: 0; }
    .menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--light-text);
        font-size: 1.5rem;
        cursor: pointer;
    }
    main { padding: 3rem 1rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.5rem; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 24px; }
    .contact-section { padding: 3rem 1.5rem; }
}