/* ========================================
   RESET Y BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #d5d5d5;
    overflow-x: hidden;
}

/* ========================================
   HEADER FIJO
   ======================================== */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Color blanco con transparencia (0.7 es el nivel de opacidad) */
    background-color: rgba(255, 255, 255, 0.7); 
    
    /* El efecto de desenfoque de lo que pasa por detrás */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Soporte para Safari */
    
    /* Un borde inferior muy fino que simula el reflejo del cristal */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Sombra más suave para que parezca que flota */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon span {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 1.125rem;
    color: #111827;
    font-weight: 600;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.875rem;
    color: #CD001A;
    font-weight: 500;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #CD001A;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #16a34a;
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-whatsapp:hover {
    background-color: #15803d;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-whatsapp .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-whatsapp span {
    display: none;
}

/* ========================================
   CONTENIDO PRINCIPAL
   ======================================== */
.main-content {
    padding-top: 0;
    min-height: calc(100vh - 5rem);
}

/* ========================================
   HERO SECTIONS
   ======================================== */
.hero-section {
    background: linear-gradient(to bottom right, #CD001A);
    color: #ffffff;
    margin-top: 0rem;
    padding: 3.5rem 1rem;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-title-large {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #F4F4F4;
    max-width: 48rem;
    margin: 0 auto;
}

.hero-subtitle-large {
    font-size: 1.25rem;
    color: #F4F4F4;
    margin-bottom: 2rem;
}

.hero-stats-card {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid-hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item-hero {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #F4F4F4;
}

/* ========================================
   BOTONES CTA
   ======================================== */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: #16a34a;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-cta-primary:hover {
    background-color: #15803d;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: #ffffff;
    color: #CD001A;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-cta-secondary:hover {
    background-color: #f3f4f6;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-cta-primary .icon,
.btn-cta-secondary .icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* ========================================
   SECTIONS
   ======================================== */
.section-white {
    padding: 5rem 1rem;
    background-color: #ffffff;
}

.section-gray {
    padding: 5rem 1rem;
    background-color: #f9fafb;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    color: #111827;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.mb-large {
    margin-bottom: 3rem;
}

/* ========================================
   GRIDS
   ======================================== */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-4-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.align-center {
    align-items: center;
}

/* ========================================
   CARDS
   ======================================== */
.category-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
    border: 1px solid #f3f4f6;
}

.category-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.category-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #d5d5d5;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-icon svg {
    width: 2rem;
    height: 2rem;
    color: #CD001A;
}

.category-title {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.card-white {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.card-white:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #d5d5d5;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.card-icon svg {
    width: 2rem;
    height: 2rem;
    color: #CD001A;
}

.card-title {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-text {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ========================================
   FEATURES
   ======================================== */
.feature-card {
    text-align: center;
}

.feature-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(to bottom right, #CD001A);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: #ffffff;
}

.feature-title {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-text {
    color: #6b7280;
}

/* ========================================
   STATS CARD
   ======================================== */
.stats-card {
    background: linear-gradient(to bottom right, #CD001A);
    border-radius: 1rem;
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    /* Blanco al 70% de opacidad */
    background-color: #ebabab; 
    
    /* El truco para que no se vea "lavado": desenfoca lo que hay detrás */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Mantenemos tus bordes y sombras, pero suavizados */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ========================================
   TEXT CONTENT
   ======================================== */
.text-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text-content p {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.75;
}

/* ========================================
   PRODUCT LINES
   ======================================== */
.product-line-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    transition: background-color 0.3s;
}

.product-line-card:hover {
    background-color: #f3f4f6;
}

.product-line-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to bottom right, #CD001A);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-line-icon svg {
    width: 2rem;
    height: 2rem;
    color: #ffffff;
}

.product-line-title {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-line-text {
    color: #6b7280;
}

/* ========================================
   BENEFITS
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.benefit-check {
    width: 2rem;
    height: 2rem;
    background-color: #dcfce7;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-check svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #15803d;
}

.benefit-item p {
    font-size: 1.125rem;
    color: #374151;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom right, #CD001A);
    color: #ffffff;
}

.cta-container {
    max-width: 56rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: #111827;
    color: #d1d5db;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon span {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: bold;
}

.footer-logo h3 {
    color: #ffffff;
    font-size: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-title {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-list {
    list-style: none;
}

.footer-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.footer-icon {
    width: 1rem;
    height: 1rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ========================================
   UTILITIES
   ======================================== */
.hide-mobile {
    display: none;
}

.icon {
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (min-width: 640px) {
    .logo-text h1 {
        font-size: 1.25rem;
    }

    .logo-text p {
        font-size: 0.875rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .btn-whatsapp span {
        display: inline;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-title-large {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-subtitle-large {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: row;
    }

    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */
@media (min-width: 1024px) {
    .header-container {
        padding: 0 2rem;
    }

    .header-nav {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .hero-title-large {
        font-size: 3.75rem;
    }

    .hide-mobile {
        display: block;
    }

    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer; /* Indica que se puede cliquear */
}

.main-logo {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Clase exclusiva para las tarjetas institucionales */
.tarjeta-institucional {
    color: var(--primary-color);
    font-weight: 700;
    font-family: inherit; /* Hereda la tipografía de tu body */
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
    max-width: 500px;
    margin: 15px auto 0;
    text-align: left;
}

.valor-item {
    /* Aquí forzamos el estilo exacto de tus otros números */
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

/* ========================================
   CARRUSEL DE PRODUCTOS
   ======================================== */
.carousel-external-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1200px; /* Evita que se estire al infinito en pantallas grandes */
    margin: 0 auto;    /* Centra todo el carrusel */
    padding: 0 60px;   /* Crea el espacio donde vivirán los botones */
}

.carousel-window {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content; /* Permite que la fila sea tan larga como necesite */
    transition: transform 0.5s ease; /* Velocidad del movimiento */
}

.products-carousel-section {
    padding: 3rem 0;
    background-color: #CD001A; /* Rojo de la marca */
    overflow: hidden;
}

.product-item {
    width: 220px; /* Tamaño controlado de cada producto */
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.product-item img {
    width: 100%;
    height: 150px;
    object-fit: contain; /* Para que la foto del producto no se estire */
    margin-bottom: 10px;
}

.product-item p {
    font-weight: bold;
    color: #374151;
    margin: 0;
}

.carousel-btn {
    background: #ffffff;
    color: #CD001A;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute; /* Los mantenemos absolutos para que no empujen las tarjetas */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-btn.prev {
    left: 5px; /* Separación del borde izquierdo del contenedor */
}

.carousel-btn.next {
    right: 5px; /* Separación del borde derecho del contenedor */
}

/* ========================================
   SECCIÓN VETERINARIA
   ======================================== */
.vet-division {
    width: 100%;
    padding: 100px 0;
    background-color: #f9fafb; /* Fondo sutil para separar secciones */
    display: flex;
    justify-content: center;
}

.vet-main-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 0 auto;
}

.vet-column-img {
    flex: 1;
}

.vet-column-img img {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.vet-column-text {
    flex: 1;
}

.vet-title {
    font-size: 2.5rem;
    color: #004b93;
    margin-bottom: 20px;
    line-height: 1.2;
}

.vet-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background-color: #CD001A;
    margin-top: 15px;
}

.vet-desc {
    font-size: 1.15rem;
    color: #4b5563;
    margin-bottom: 30px;
}

.vet-value-points {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.vet-value-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.vet-value-icon {
    background-color: #004b93;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 4px;
}

.vet-value-info strong {
    color: #004b93;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.vet-value-info p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.vet-whatsapp-btn {
    display: inline-block;
    margin-top: 40px;
    background-color: #004b93;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.vet-whatsapp-btn:hover {
    background-color: #CD001A;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .vet-main-container {
        flex-direction: column;
        text-align: center;
    }
    .vet-value-item {
        text-align: left;
    }
    .vet-title::after {
        margin: 15px auto;
    }
}