/* --- VARIABLES --- */
:root {
    --primary: #5bc9bf;
    --primary-dark: #4ab0a7;
    --secondary: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--secondary); line-height: 1.6; overflow-x: hidden; }

.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2.5rem; }

.section-title { font-size: 2.2rem; margin-bottom: 40px; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--primary); margin: 15px auto 0; border-radius: 3px; }

/* --- BOTONES --- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary { background-color: var(--primary); color: var(--secondary); box-shadow: 0 4px 15px rgba(91, 201, 191, 0.3); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(91, 201, 191, 0.4); }
.outline-btn { border: 2px solid var(--primary); color: var(--secondary); background: transparent; transition: all 0.3s; }
.outline-btn:hover { background: var(--primary); color: var(--secondary); }
.phone-link { 
    color: #000000; /* Negro puro para máximo contraste */
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1.5rem; /* Lo hacemos bastante más grande */
    transition: color 0.3s ease;
}

/* Un toque profesional: que se ponga turquesa solo al pasar el ratón por encima */
.phone-link:hover {
    color: var(--primary);
}
.btn-block { display: block; width: 100%; text-align: center; margin-top: 20px; }

/* --- HEADER Y MENÚ --- */
.header { padding: 15px 0; position: fixed; width: 100%; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-content { display: flex; justify-content: space-between; align-items: center; }

/* ESTILOS DEL NUEVO LOGO */
/* ESTILOS DEL NUEVO LOGO (FORZADO) */
.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.logo-img { 
    height: 40px !important; /* El !important fuerza el tamaño sí o sí */
    width: auto !important;
    max-width: 150px; /* Evita que logos horizontales se estiren infinito */
    object-fit: contain; 
}

.nav a { text-decoration: none; color: var(--secondary); margin-left: 20px; font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
.nav a:hover { color: var(--primary); }
.nav-btn { padding: 10px 24px; margin-left: 20px; }

/* Hamburguesa */
.hamburger-menu { cursor: pointer; z-index: 1002; }
.bar { width: 25px; height: 3px; background-color: var(--secondary); margin: 5px auto; transition: all 0.3s; }

/* Overlay Móvil */
.mobile-nav-overlay { height: 100%; width: 0; position: fixed; z-index: 1001; top: 0; right: 0; background-color: var(--secondary); overflow-x: hidden; transition: 0.4s; display: flex; align-items: center; justify-content: center; }
.mobile-nav-overlay.active { width: 100%; }
.mobile-nav-links { list-style: none; text-align: center; }
.mobile-nav-links li { margin: 25px 0; }
.mobile-nav-links a { color: var(--white); font-size: 1.5rem; text-decoration: none; font-weight: 600; }
.close-menu-btn { position: absolute; top: 20px; right: 30px; font-size: 40px; color: var(--white); cursor: pointer; }
.close-menu-btn:hover { color: var(--primary); }

/* --- HERO PARALLAX --- */
.hero { height: 100vh; min-height: 600px; display: flex; align-items: center; position: relative; color: var(--white); overflow: hidden; }

/* 4. CAMBIA AQUÍ LA FOTO DE FONDO DE LA PORTADA */
/* Sube una foto en horizontal llamada 'fondo-hero.jpg' a la carpeta 'img' */
.hero-bg { 
    position: absolute; 
    top: -15%; left: -15%;  /* Antes era -5% */
    width: 120%; height: 130%; /* Antes era 110% */
    background: url('img/fondo.jpg') no-repeat center center/cover !important; 
    transition: transform 0.1s ease-out; 
    z-index: 1; 
}

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44, 62, 80, 0.7); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 700px; pointer-events: none; }
.hero-content h2, .hero-content p, .hero-content a { pointer-events: auto; }
.hero-content h2 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }

/* --- LAYOUTS --- */
.split-layout { display: flex; align-items: center; gap: 50px; }
.text-content, .image-content { flex: 1; }
.lead-text { font-size: 1.2rem; font-weight: 600; color: var(--primary); margin-bottom: 20px; }
.mockup-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { 
    background: var(--white); 
    padding: 40px; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    text-align: center; 
    /* Añadimos background-color a la transición para que el cambio de color sea suave y no de golpe */
    transition: transform 0.3s ease, background-color 0.3s ease; 
}

.service-card:hover { 
    transform: translateY(-5px); 
    /* Es tu color #5bc9bf pero con un 15% de opacidad (0.15) */
    background-color: rgba(91, 201, 191, 0.15); 
}

/* --- SWIPER CARRUSELES --- */
.swiper { width: 100%; padding-bottom: 50px !important; }
.slider-img { width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.review-card { background: var(--white); padding: 40px 30px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; border-top: 5px solid var(--primary); height: auto; display: flex; flex-direction: column; justify-content: center; }
.review-card .stars { font-size: 1.5rem; margin-bottom: 15px; }
.review-card p { font-style: italic; color: var(--text-light); margin-bottom: 20px; }

.swiper-button-next, .swiper-button-prev { color: var(--primary) !important; }
.swiper-pagination-bullet-active { background-color: var(--primary) !important; }

/* --- CONTACTO --- */
.align-start { align-items: flex-start; }
.contact-info { flex: 1; }
.contact-details p { margin-bottom: 15px; }
.map-container { flex: 1; height: 400px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: 100%; }

.footer { background: var(--secondary); color: var(--white); padding: 30px 0; font-size: 0.9rem; }

/* --- RESPONSIVE --- */
.mobile-only { display: none; }

@media (max-width: 1095px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .hero-content h2 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .split-layout { flex-direction: column; gap: 40px; }
    .section { padding: 60px 0; }
    .map-container { height: 300px; }
}

/* --- BOTÓN WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

/* En móvil lo hacemos un poquito más pequeño para que no estorbe */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}
/* --- BOTÓN WHATSAPP OFICIAL --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 100%;
    height: 100%;
    /* La sombra se adapta a la forma del logo, incluido el rabito */
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.3)); 
}

/* En móvil lo hacemos un poquito más pequeño */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}
/* --- LOGO: ESTILO BASE (PC/ORDENADOR) --- */
.logo-text-container {
    display: flex;
    flex-direction: row; /* Texto en una sola línea en PC */
    align-items: baseline;
    gap: 8px;
    margin-left: 10px;
}
.logo-top {
    font-size: 1.5rem; /* Tamaño grande para PC */
    font-weight: 700;
}
.logo-bottom {
    font-size: 1.5rem;
}

/* --- LOGO: ESTILO PARA MÓVILES (PANTALLAS PEQUEÑAS) --- */
@media (max-width: 768px) {
    .logo-text-container {
        flex-direction: column; /* Una línea sobre otra solo en móvil */
        gap: 0;
        margin-left: 5px;
    }
    .logo-top {
        font-size: 0.85rem; /* "Peluquería Canina" pequeñito arriba */
        line-height: 1.2;
    }
    .logo-bottom {
        font-size: 1.3rem; /* "Vicálvaro" destacado abajo */
        line-height: 1;
    }
    .logo-img {
        height: 35px !important; /* Ajustamos la huella al nuevo tamaño */
    }
}




/* --- TELÓN DE CARGA (PRELOADER) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white); /* Fondo blanco limpio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Por encima de todos los elementos de la web */
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Esta clase se activará cuando la web termine de cargar */
#preloader.oculto {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 150px; /* Tamaño perfecto para el logo */
    height: auto;
    margin-bottom: 25px;
    animation: latido 1.5s infinite ease-in-out; /* Efecto de respiración */
}

/* Animación del latido del logo */
@keyframes latido {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Círculo de carga giratorio */
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(91, 201, 191, 0.2); /* Tu turquesa pero casi transparente */
    border-top-color: var(--primary); /* Tu turquesa sólido */
    border-radius: 50%;
    animation: giro 1s linear infinite;
}

/* Animación de giro de la rueda */
@keyframes giro {
    to { transform: rotate(360deg); }
}



/* --- BANNER DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Empieza oculto por debajo de la pantalla */
    left: 0;
    width: 100%;
    background-color: #2b2b2b; /* Gris muy oscuro, casi negro */
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 99998; /* Muy alto, pero justo por debajo del telón de carga */
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    transition: bottom 0.6s ease-in-out;
    font-size: 0.85rem;
    text-align: center;
}

/* Esta clase es la que hace que el banner suba y se vea */
.cookie-banner.show {
    bottom: 0;
}

.cookie-banner a {
    color: var(--primary); /* Tu turquesa para el enlace */
    text-decoration: underline;
}

.cookie-banner .btn {
    padding: 8px 24px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Diseño para pantallas grandes (ordenador) */
@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        text-align: left;
        padding: 15px 50px;
    }
    .cookie-banner p {
        margin: 0;
        flex: 1;
        padding-right: 30px;
    }
}
.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid #777;
    padding: 8px 24px;
    border-radius: 5px; /* Ajusta si tus botones son redondeados */
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #444;
}

/* --- ESTILOS PARA PÁGINAS LEGALES --- */
.legal-container {
    max-width: 800px; 
    margin: 120px auto 40px auto; /* 120px arriba, centrado a los lados, 40px abajo */
    padding: 20px;
    background-color: var(--white);
    color: #333;
    line-height: 1.6;
}

.legal-container h1 {
    color: var(--primary);
    margin-bottom: 10px;
}

.legal-container h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-container a {
    color: var(--primary);
    text-decoration: underline;
}

