﻿@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Nunito:wght@400;500;600;700&display=swap');

/* ========================================
   ALELUYA - Modern 2026 Design
   Warm & Friendly Style
   ======================================== */

/* ========================================
   PREMIUM PAGE ENTRY ANIMATION (2026)
   ======================================== */
body::before, body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    transform-origin: bottom;
    pointer-events: none;
}

body::before {
    background: #1A1A1A;
    animation: premiumSwipeUp 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.1s forwards;
}

body::after {
    background: var(--color-primary);
    animation: premiumSwipeUp 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.3s forwards;
}

@keyframes premiumSwipeUp {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(0); }
}

/* Hero Content Delay */
.hero-content {
    animation: heroFadesIn 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards !important;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes heroFadesIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212,165,116,0.3); }
    50% { box-shadow: 0 0 40px rgba(212,165,116,0.6); }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


:root {
    /* Colors */
    --color-primary: #8B5E3C;
    --color-secondary: #6B4429;
    --color-accent: #7A9A7E;
    --color-accent-dark: #5E7D62;
    --color-cream: #FAF8F5;
    --color-white: #FFFFFF;
    --color-text: #2C2C2C;
    --color-text-light: #6B6B6B;
    --color-bg: #F8F5F0;
    --color-bg-alt: #EDE8E0;
    --color-whatsapp: #25D366;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #6B4429 0%, #8B5E3C 100%);
    --gradient-accent: linear-gradient(135deg, #7A9A7E 0%, #5E7D62 100%);
    --gradient-warm: linear-gradient(135deg, #D4A574 20%, #E8C9A8 100%);

    /* Typography */
    --font-title: 'DM Serif Display', Georgia, serif;
    --font-body: 'Nunito', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(139, 94, 60, 0.08);
    --shadow-md: 0 8px 30px rgba(139, 94, 60, 0.12);
    --shadow-lg: 0 16px 50px rgba(139, 94, 60, 0.18);
    --shadow-hover: 0 20px 60px rgba(139, 94, 60, 0.22);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

/* Global Reset over Blue Links */
a { text-decoration: none; color: inherit; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    background: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header - Premium Glassmorphism */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0turn;
    inherits: false;
}

@keyframes rotateBorder {
    to { --border-angle: 1turn; }
}

.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    z-index: 1000;
    padding: 0.75rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    top: 10px;
    padding: 0.5rem 1.5rem;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 80px;
    transition: height var(--transition-normal);
}

.header.scrolled .header-container {
    height: 60px;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

.logo-img {
    height: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    display: block;
    object-fit: contain !important;
    transition: height var(--transition-normal), max-height var(--transition-normal);
}

.header.scrolled .logo-img {
    height: 50px !important;
    max-height: 50px !important;
}

.footer-logo-img {
    height: auto !important;
    max-height: 80px !important;
    width: auto !important;
    max-width: 100% !important;
    opacity: 0.9;
    object-fit: contain !important;
    filter: brightness(0) invert(1); /* Assuming logo needs to be white on dark footer, otherwise skip filter */
}

.header.scrolled .logo-text { color: var(--color-primary); }

.logo-accent { color: var(--color-accent); }

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover { color: var(--color-primary); }
.nav-link:hover::after { width: 100%; }

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--color-whatsapp);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    transition: all var(--transition-normal);
}

.header-cta:hover {
    background: #1da850;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-fast);
}

.header.scrolled .menu-toggle span { background: var(--color-primary); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(34, 84, 61, 0.5) 0%, rgba(55, 120, 90, 0.45) 100%),
                url('../images/hero2.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(232, 201, 168, 0.08) 0%, transparent 30%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    pointer-events: none;
    z-index: 2;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--color-accent);
    top: -200px;
    right: -100px;
    animation: float 25s infinite ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-cream);
    bottom: -100px;
    left: -50px;
    animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 680px;
    padding: 6rem 1rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: var(--radius-xl);
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
}

.feature i { color: var(--color-accent); }

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Sections */
section { padding: 5rem 0; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle { color: var(--color-text-light); }

/* Servicios */
.servicios { background: var(--color-bg); }

.servicios-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.servicio-card {
    background: var(--color-white);
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.servicio-card:hover {
    box-shadow: var(--shadow-hover);
}

.servicio-icon {
    width: 55px;
    height: 55px;
    background: var(--color-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.servicio-icon i { font-size: 1.3rem; color: var(--color-accent); }

.servicio-card h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.servicio-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Galería */
.galeria { background: var(--color-bg-alt); }

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.galeria-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.galeria-item:hover img { transform: scale(1.1); }

.galeria-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 74, 62, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.galeria-item:hover .galeria-info { opacity: 1; }

.galeria-info i {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.galeria-info span {
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Testimonios */
.testimonios {
    background: var(--gradient-hero);
    position: relative;
}

.testimonios::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212, 165, 116, 0.1) 0%, transparent 40%);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.testimonio-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonio-stars {
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.testimonio-text {
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.author-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 0.85rem;
}

.testimonio-author h4 {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
}

.testimonio-author span {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Contacto */
.contacto { background: var(--color-bg); }
/* ========================================
   NUEVO CONTACTO WHATSAPP FORM
   ======================================== */
.contacto-header-new {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.contacto-badge {
    color: #6c7a89;
    font-size: 1.1rem;
    font-weight: 600;
}

.contacto-badge::before {
    content: "•";
    color: var(--color-accent);
    margin-right: 8px;
    font-size: 1.5rem;
    vertical-align: middle;
}

.contacto-title-new {
    font-family: var(--font-body);
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 10px;
}

.contacto-title-new em {
    font-family: var(--font-title);
    font-style: italic;
    font-weight: 400;
    color: var(--color-secondary);
}

.contacto-split {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    margin-top: var(--spacing-lg);
}

@media (max-width: 900px) {
    .contacto-split {
        flex-direction: column;
        gap: 2rem;
    }
}

.contacto-image {
    flex: 0 1 45%;
    max-width: 45%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contacto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacto-form-wrapper {
    flex: 1;
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.whatsapp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.form-header {
    text-align: center;
    color: var(--color-navy);
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.whatsapp-form .form-group input,
.whatsapp-form .form-group textarea {
    width: 100%;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.whatsapp-form .form-group input:focus,
.whatsapp-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.2);
}

.btn-whatsapp-submit {
    background-color: var(--color-whatsapp);
    color: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 10px;
}

.btn-whatsapp-submit:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* ========================================
   FOOTER - Premium Redesign
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(212, 165, 116, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 165, 116, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.85;
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
}

.footer-cta {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-cta p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.8rem;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-whatsapp);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    color: white;
}

.footer h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-title);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent) !important;
    transform: translateX(5px);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.footer-contact li, .footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    opacity: 0.85;
    font-size: 0.95rem;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer-contact i {
    color: var(--color-accent);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-white);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--color-accent);
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.social-links i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 54px;
    height: 54px;
    background: var(--color-whatsapp);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all var(--transition-normal);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.floating-whatsapp i { font-size: 1.5rem; color: var(--color-white); }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Hero Line */
.hero-line {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}
.hero-line::before,
.hero-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}
.hero-line span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Guardia de Emergencia */
.guardia-emergencia {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 40px 0;
    text-align: center;
}
.guardia-emergencia .guardia-content i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.guardia-emergencia h3 {
    margin-bottom: 10px;
    color: white;
}

/* Profesionales */
.profesionales {
    padding: 60px 0;
    background: #f8f9fa;
}
.profesionales-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.profesional-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.profesional-item:hover {
    transform: translateY(-5px);
}
.profesional-item i {
    font-size: 1.8rem;
    color: #2d5a47;
    margin-bottom: 10px;
    display: block;
}
.profesional-item span {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .servicios-wrapper { grid-template-columns: repeat(2, 1fr); }
    .galeria-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 280px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        padding: 5rem 1.5rem 1.5rem;
        transition: right var(--transition-normal);
    }

    .nav.active { right: 0; }
    .nav-list { flex-direction: column; gap: 1rem; }
    .nav-link { color: var(--color-primary); font-size: 1rem; }
    .menu-toggle { display: flex; z-index: 1001; }
    .header-cta { display: none; }

    .hero-actions { flex-direction: column; }
    .servicios-wrapper,
    .testimonios-grid { grid-template-columns: 1fr; }
    
    .contacto-split { flex-direction: column; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer h4::after { left: 50%; transform: translateX(-50%); }
    .footer-links ul, .footer-contact ul { align-items: center; }
    .social-links { justify-content: center; }
}

.footer .nav-link { color: rgba(255, 255, 255, 0.8) !important; }
.footer .nav-link:hover { color: var(--color-white) !important; }

/* ========================================
   MOBILE BOTTOM NAVIGATION BAR
   ======================================== */
.mobile-bottom-nav {
        transform: translate3d(0, 0, 0);
        will-change: transform;
    display: none;
}

@media (max-width: 768px) {
    /* Floating pill bottom nav */
    .mobile-bottom-nav {
        transform: translate3d(0, 0, 0);
        will-change: transform;
        display: flex;
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
        padding: 8px 4px 12px;
        justify-content: space-around;
        align-items: center;
        border-radius: 100px;
        height: 60px;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        padding: 4px 0;
        color: #888;
        font-size: 0.6rem;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease;
        flex: 1;
        letter-spacing: 0.02em;
    }

    .mobile-nav-item i {
        font-size: 1.05rem;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .mobile-nav-item:active {
        color: var(--color-primary, #1E3A5F);
    }

    .mobile-nav-item:active i {
        transform: scale(1.15);
    }

    /* WhatsApp center bubble - overflows above */
    .mobile-nav-whatsapp {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: -30px;
        color: #25D366;
    }

    .whatsapp-bubble {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        flex-shrink: 0;
    }

    .whatsapp-bubble i {
        font-size: 1.4rem;
        color: white !important;
    }

    .mobile-nav-whatsapp:active .whatsapp-bubble {
        transform: scale(1.1);
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
    }

    .mobile-nav-whatsapp span {
        color: #128C7E;
        font-weight: 700;
        font-size: 0.55rem;
        margin-top: 1px;
    }

    /* Hide floating WhatsApp on mobile */
    .floating-whatsapp {
        display: none !important;
    }

    /* Hide header CTA and hamburger on mobile */
    .header-cta,
    .menu-toggle,
    .nav {
        display: none !important;
    }

    /* Center logo on mobile */
    .header-container {
        justify-content: center !important;
    }

    /* Non-sticky transparent header with glowing logo */
    .header {
        position: absolute !important;
        width: auto !important;
        max-width: none !important;
        padding: 0.5rem 1rem !important;
        background: transparent !important;
        background-image: none !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .header.scrolled {
        position: absolute !important;
        background: transparent !important;
        background-image: none !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .header .logo-img {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8))
               drop-shadow(0 0 24px rgba(255, 255, 255, 0.4))
               drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
        transition: filter 0.3s ease;
    }

    .header.scrolled .logo-img {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9))
               drop-shadow(0 0 20px rgba(255, 255, 255, 0.5))
               drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    }

    .header.scrolled .header-container,
    .header-container {
        height: auto !important;
    }

    /* Body/footer padding for bottom nav */
    body {
        padding-bottom: 90px;
    }

    .footer {
        padding-bottom: 90px;
    }
}


/* ========================================
   FAQ
   ======================================== */
.faq {
    background: #f7f8fa;
    padding: 80px 0;
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.faq-item.active {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: #1a2f4a;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(0,0,0,0.02);
}

.faq-question span {
    flex: 1;
}

.faq-question i {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    border-radius: 50%;
    font-size: 0.75rem;
    color: #4a6fa5;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    background: #25D366;
    color: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 16px 24px 20px;
    margin: 0;
    color: #5a6a7a;
    line-height: 1.8;
    font-size: 0.9375rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ========================================
   Form validation - inline errors
   ======================================== */
.whatsapp-form .form-group {
    position: relative;
}

.whatsapp-form .form-group input.input-invalid,
.whatsapp-form .form-group textarea.input-invalid {
    border-color: #e53935;
    background-color: #fff5f5;
}

.whatsapp-form .form-group input.input-invalid:focus,
.whatsapp-form .form-group textarea.input-invalid:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.whatsapp-form .form-error {
    display: block;
    margin-top: 6px;
    color: #e53935;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    animation: formErrorIn 0.2s ease-out;
}

@keyframes formErrorIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}