:root {
    --accent-orange: #FF5A1F;
    --dark: #121212;
    --gray-bg: #F8F9FA;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --whatsapp-green: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Urbanist', sans-serif; }

body { background-color: var(--gray-bg); color: var(--dark); }

/* --- HEADER --- */
.main-header {
    background: var(--white);
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 24px; font-weight: 800; cursor: pointer; min-width: 150px; }
.logo span { color: var(--accent-orange); }

.desktop-nav { display: flex; gap: 30px; }
.nav-link { 
    text-decoration: none; 
    color: #718096; 
    font-weight: 700; 
    font-size: 15px;
    transition: 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--accent-orange); }

.header-actions { display: flex; align-items: center; gap: 15px; min-width: 120px; justify-content: flex-end; }

.icon-btn {
    background: var(--gray-bg); border: 1px solid var(--border);
    width: 40px; height: 40px; border-radius: 50%; position: relative; cursor: pointer;
}

.icon-btn .dot {
    position: absolute; top: 8px; right: 8px;
    width: 8px; height: 8px; background: var(--accent-orange);
    border-radius: 50%; border: 2px solid #fff;
}

.user-avatar img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); }

/* --- APP CONTENT --- */
.app-content { 
    max-width: 1200px; 
    margin: 80px auto 0; 
    padding: 40px 5%; 
}

.hero-section h1 { font-size: 40px; font-weight: 800; margin-top: 10px; }
.location-tag { color: var(--accent-orange); font-weight: 700; font-size: 14px; }

.search-container { margin-top: 30px; max-width: 600px; }
.search-wrapper {
    display: flex; align-items: center; background: #fff;
    padding: 8px; border-radius: 20px; border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.search-wrapper i { margin: 0 15px; color: #A0AEC0; }
.search-wrapper input { flex: 1; border: none; outline: none; padding-left: 10px; font-size: 16px; }
.search-btn { background: var(--dark); color: #fff; border: none; padding: 12px 25px; border-radius: 15px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.search-btn:hover { background: var(--accent-orange); }

/* GRID CATEGORÍAS */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.category-card {
    background: #fff; height: 220px; border-radius: 30px; overflow: hidden;
    position: relative; cursor: pointer; border: 1px solid var(--border);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.category-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.card-image { width: 100%; height: 100%; background-size: cover; background-position: center; filter: brightness(0.7); }
.card-info { position: absolute; bottom: 25px; left: 25px; display: flex; align-items: center; gap: 15px; }
.icon-circle { width: 40px; height: 40px; background: var(--accent-orange); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; }
.card-info span { color: #fff; font-weight: 700; font-size: 20px; }

.custom-service { border: 2px dashed var(--accent-orange); }
.badge-premium { position: absolute; top: 15px; right: 15px; background: var(--dark); color: #fff; padding: 5px 12px; border-radius: 12px; font-size: 10px; font-weight: 800; }

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #fff; width: 90%; max-width: 400px; border-radius: 30px; overflow: hidden; position: relative; transform: translateY(30px); transition: 0.4s; }
.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute; top: 15px; right: 15px; width: 40px; height: 40px;
    background: #fff; border: 2px solid var(--dark); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 100;
}

.modal-header-img { height: 180px; background-size: cover; background-position: center; }
.modal-body { padding: 25px; }
.price-tag { background: #FFF5F2; padding: 15px; border-radius: 15px; border-left: 5px solid var(--accent-orange); margin: 15px 0; }
.amount { font-size: 28px; font-weight: 800; color: var(--accent-orange); }
.label { display: block; font-size: 14px; color: #666; }

.btn-confirm-booking { 
    width: 100%; 
    background: var(--whatsapp-green); 
    color: #fff; 
    border: none; 
    padding: 15px; 
    border-radius: 15px; 
    font-weight: 800; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    transition: 0.3s;
    font-size: 16px;
}
.btn-confirm-booking:hover { background: #128C7E; }

.highlight-card { border: 3px solid var(--accent-orange) !important; transform: scale(1.05); }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
}
/* --- SECCIÓN DE CONFIANZA (DISEÑO PREMIUM UNIFICADO) --- */
.trust-badge-section {
    margin-top: 50px;
    padding-bottom: 40px;
}

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

.trust-item.premium-trust {
    background: #FFF5F2; /* Fondo naranja suave unificado */
    padding: 30px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid var(--accent-orange); /* Borde naranja unificado */
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trust-item.premium-trust:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 90, 31, 0.15);
}

.trust-icon-box {
    width: 70px;
    height: 70px;
    background: var(--accent-orange); /* Fondo de icono naranja intenso */
    color: #fff;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(255, 90, 31, 0.3); /* Sombra de icono */
}

.trust-text h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--dark);
}

.trust-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .trust-container {
        grid-template-columns: 1fr;
    }
}
/* Ajuste base de la información de la carta */
.card-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0; /* Asegura que ocupe todo el ancho */
    display: flex;
    flex-direction: column; /* Icono arriba, texto abajo para que quepa mejor */
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    text-align: center;
}

.card-info span {
    color: #fff;
    font-weight: 800;
    font-size: 18px; /* Tamaño base más seguro */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Mejora lectura sobre fotos */
}

/* --- MEDIA QUERY PARA CELULARES --- */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas */
        gap: 12px;
    }
    
    .category-card {
        height: 180px; /* Un poco más bajas en móvil */
        border-radius: 20px;
    }

    .card-info span {
        font-size: 15px; /* Texto más pequeño para que no se corte */
    }

    .icon-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}
/* --- CARRUSEL DE TESTIMONIOS --- */
.testimonials-section {
    margin-top: 60px;
    overflow: hidden; /* Corta lo que sobresale */
    padding-bottom: 50px;
}

.carousel-container {
    width: 100%;
    margin-top: 30px;
    position: relative;
}

.carousel-track {
    display: flex;
    width: calc(300px * 10); /* Ajusta según el número de tarjetas */
    animation: scroll 30s linear infinite; /* Movimiento continuo */
}

.carousel-track:hover {
    animation-play-state: paused; /* Se detiene cuando el usuario pone el mouse */
}

.testimonial-card {
    width: 300px;
    background: #fff;
    margin: 0 15px;
    padding: 30px;
    border-radius: 25px;
    border: 1px solid var(--border);
    text-align: center;
    flex-shrink: 0;
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--accent-orange);
}

.stars {
    color: #FFB800;
    margin-bottom: 10px;
    font-size: 14px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 15px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    font-weight: 800;
    font-size: 16px;
}

.testimonial-card span {
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
}

/* Animación de Derecha a Izquierda */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 5)); } /* Mueve el ancho de las 5 originales */
}
/* --- SECCIÓN EXPERTOS --- */
.experts-section {
    margin-top: 60px;
    text-align: center;
}

.experts-section .subtitle {
    color: #718096;
    margin-bottom: 30px;
    font-weight: 600;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.expert-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 30px;
    border: 1px solid var(--border);
    transition: 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.expert-img-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-orange);
    padding: 3px;
    background: #fff;
}

.expert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.expert-info h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}

.expert-tag {
    font-size: 14px;
    color: var(--accent-orange);
    font-weight: 700;
    background: #FFF5F2;
    padding: 5px 12px;
    border-radius: 10px;
    display: inline-block;
}

/* Ajuste móvil */
@media (max-width: 480px) {
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .expert-card {
        padding: 20px 10px;
    }
    .expert-img-container {
        width: 80px;
        height: 80px;
    }
    .expert-info h3 {
        font-size: 18px;
    }
}
/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    z-index: 3000; /* Por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* Etiqueta de Urgencias */
.whatsapp-badge {
    position: absolute;
    top: -10px;
    right: 0;
    background: #ff0000; /* Rojo para urgencias */
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid white;
}

/* Animación de pulso para Urgencias */
@keyframes pulse-green {
    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); }
}

/* Ajuste para móvil (un poco más pequeño) */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
/* --- AVISO DE COOKIES --- */
.cookie-overlay {
    position: fixed;
    bottom: -100%; /* Oculto por defecto */
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 5000;
    transition: bottom 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-overlay.active {
    bottom: 0;
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
}

.cookie-icon {
    font-size: 30px;
    color: var(--accent-orange);
    background: #FFF5F2;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.cookie-text h3 { font-size: 18px; font-weight: 800; margin-bottom: 5px; }
.cookie-text p { font-size: 14px; color: #555; line-height: 1.4; }

.cookie-actions { display: flex; gap: 10px; }

.btn-cookie {
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn-cookie.accept {
    background: var(--dark);
    color: #fff;
}

.btn-cookie.accept:hover { background: var(--accent-orange); }

.btn-cookie.decline {
    background: var(--gray-bg);
    color: #718096;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    .btn-cookie { width: 100%; }
}
/* --- ESTILOS DEL FOOTER --- */
.main-footer {
    background: #121212;
    color: #fff;
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 4px solid var(--accent-orange);
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col.branding p {
    color: #A0AEC0;
    line-height: 1.6;
    margin: 20px 0;
    font-size: 15px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a {
    color: #A0AEC0;
    text-decoration: none;
    transition: 0.3s;
    font-size: 15px;
}
.footer-col ul li a:hover { color: #fff; transform: translateX(5px); display: inline-block; }

.footer-col ul li i {
    color: var(--accent-orange);
    margin-right: 10px;
}

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: #fff; text-decoration: none; transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.social-links a:hover { background: var(--accent-orange); transform: translateY(-3px); }

.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #A0AEC0; font-size: 15px; }
.contact-item i { color: var(--accent-orange); font-size: 16px; }

/* --- BARRA INFERIOR Y TU FIRMA --- */
.footer-bottom {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-credits-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-credits-area p {
    color: #718096;
    font-size: 13px;
}

.developer-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #718096;
}

.zenith-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff !important;
    font-weight: 700;
    transition: 0.3s;
}

.zenith-brand:hover {
    color: var(--accent-orange) !important;
}

.zenith-logo-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.zenith-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-legal a {
    color: #718096;
    text-decoration: none;
    font-size: 13px;
    margin-left: 20px;
}

.footer-legal a:hover { color: #fff; }

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .social-links, .contact-item, .developer-badge { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .footer-legal a { margin: 0 10px; }
}
.cookie-overlay {
    position: fixed;
    bottom: -100%; /* Oculto abajo */
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 9999; /* <--- Súbelo a 9999 */
    transition: bottom 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}