/* =========================================
   1. VARIABLES Y CONFIGURACIÓN (COLORES)
   ========================================= */
:root {
    /* Paleta de Colores (Basada en tu Logo Pet Shop) */
    --primary: #D32F2F;      /* Rojo Principal */
    --primary-dark: #B71C1C; /* Rojo Oscuro (al pasar el mouse) */
    --secondary: #FB8C00;    /* Naranja (Acento) */
    
    /* Colores Neutros */
    --dark: #263238;         /* Gris casi negro (Textos oscuros) */
    --text: #546E7A;         /* Gris medio (Párrafos) */
    --light: #F5F5F5;        /* Gris claro (Fondos suaves) */
    --white: #ffffff;        /* Blanco puro */
    
    /* Tipografías */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Efectos */
    --shadow: 0 5px 20px rgba(0,0,0,0.08); /* Sombra suave */
    --transition: all 0.3s ease;           /* Animación suave */
}

/* =========================================
   2. ESTILOS GENERALES (RESET)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave */
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
}

/* Títulos */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Subtítulos decorativos (letras pequeñas arriba de los títulos) */
.sub-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    width: 100%;
    display: block;
    height: auto;
}

ul {
    list-style: none;
}

/* Clases Utilitarias */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light);
}

.text-center {
    text-align: center;
}

/* =========================================
   3. BOTONES
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

/* Botón Rojo Principal */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Botón Transparente (Borde Blanco) */
.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Enlace tipo texto con flecha */
.btn-text {
    color: var(--primary);
    font-weight: 700;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    color: var(--primary-dark);
    gap: 10px; /* La flecha se mueve un poco */
}

/* =========================================
   4. BARRA SUPERIOR (TOP BAR)
   ========================================= */
.top-bar {
    background-color: var(--dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    color: var(--secondary);
    margin-right: 8px;
}

.top-social a {
    color: var(--white);
    margin-left: 15px;
}

.top-social a:hover {
    color: var(--secondary);
}

/* =========================================
   5. ENCABEZADO (HEADER)
   ========================================= */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky; /* Fijo al bajar */
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px; /* Ajusta el tamaño de tu logo aquí */
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary);
}

.hamburger {
    display: none; /* Oculto en PC */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
}

/* =========================================
   6. PORTADA (HERO SECTION)
   ========================================= */
.hero {
    height: 85vh; /* 85% de la altura de la pantalla */
    /* Imagen de fondo + Capa oscura */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.5)), url('img/perro-y-copyspace.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    background-color: var(--secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 25px;
    display: inline-block;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

/* =========================================
   7. SECCIÓN DE ESTADÍSTICAS
   ========================================= */
.stats {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
    margin-top: -5px; /* Para asegurar que pegue con el hero */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary); /* Iconos naranjas sobre rojo */
}

.stat-item h3 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.9;
}

/* =========================================
   8. SECCIÓN SOBRE NOSOTROS
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Insignia flotante de "Años de experiencia" */
.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(251, 140, 0, 0.4);
}

.experience-badge .years {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.about-features i {
    color: var(--secondary);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* =========================================
   9. SECCIÓN DE SERVICIOS
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    border-bottom: 4px solid transparent; /* Línea invisible abajo */
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary); /* La línea se pone roja al pasar el mouse */
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: #FFEBEE; /* Rojo muy claro */
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.link-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 20px;
    display: inline-block;
    border-bottom: 2px solid var(--primary);
}

/* =========================================
   10. SECCIÓN EQUIPO MÉDICO
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img {
    height: 320px;
    overflow: hidden;
}

.team-img img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Recorta la imagen para que llene el espacio */
    transition: 0.5s;
}

.team-card:hover .team-img img {
    transform: scale(1.1); /* Efecto zoom en la foto */
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-info span {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* =========================================
   11. PREGUNTAS FRECUENTES (ACORDEÓN)
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0; /* Oculto por defecto */
    overflow: hidden;
    transition: 0.4s ease;
    color: var(--text);
    border-top: 1px solid transparent;
}

/* Estilos cuando la pregunta está activa (JS agrega esta clase) */
.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 200px;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active i {
    transform: rotate(180deg);
    transition: 0.3s;
}

/* =========================================
   12. PIE DE PÁGINA (FOOTER)
   ========================================= */
.footer {
    background-color: var(--dark);
    color: #CFD8DC;
    padding-top: 80px;
    margin-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid #37474F;
}

.footer h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 30px;
    position: relative;
}

/* Línea naranja debajo de los títulos del footer */
.footer h3::after {
    content: '';
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 8px; /* Pequeño movimiento a la derecha */
}

/* Lista de contacto con iconos */
.contact-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-list i {
    color: var(--primary);
    margin-top: 5px;
}

/* Redes sociales en footer */
.footer-social a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    text-align: center;
    line-height: 45px; /* Centrar verticalmente */
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
}

/* =========================================
   13. RESPONSIVE (CELULARES Y TABLETS)
   ========================================= */

/* Tablets (hasta 991px) */
@media (max-width: 991px) {
    .header {
        padding: 10px 0;
    }

    /* Mostrar botón hamburguesa */
    .hamburger {
        display: block;
    }

    /* Menú móvil desplegable */
    .nav-menu {
        position: fixed;
        left: -100%; /* Escondido a la izquierda */
        top: 110px; /* Debajo de la barra superior */
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 40px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: 0.4s;
    }

    .nav-menu.active {
        left: 0; /* Aparece */
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 20px;
    }

    /* Ajustes generales */
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    
    .about-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }
    
    .about-image {
        margin-bottom: 50px; /* Espacio debajo de la imagen */
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas en vez de 4 */
        gap: 40px;
    }
}

/* Celulares (hasta 768px) */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns .btn {
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr; /* 1 columna vertical */
    }
    
    .experience-badge {
        left: 10px;
        bottom: 10px;
        padding: 15px;
    }
    
    .experience-badge .years {
        font-size: 2.5rem;
    }
}