/* --- Animación de aparición al cargar la web --- */
@keyframes fadeInOnLoad {
    from {
        opacity: 0;
        transform: translateY(20px); /* El contenido sube ligeramente */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos Generales */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Se quita la animación de aquí */
}

/* Nuevo contenedor para aplicar la animación */
.page-wrapper {
    animation: fadeInOnLoad 1s ease-out forwards;
}

.container {
    max-width: 800px; /* Ancho máximo para el contenido principal (tablas/tarjetas) */
    margin: 20px auto;
    padding: 0 10px;
    position: relative;
    z-index: 1; 
}

/* --- Estilos para el Contenedor de Video/Imagen (Hero) --- */
.hero-image-container {
    width: 100vw;           /* Ocupa el ancho completo del viewport */
    margin: 0;              /* Elimina márgenes para que no haya desplazamiento */
    overflow: hidden;
    position: relative;
}

/* --- Video Hero ajustado para ocupar todo el ancho sin márgenes --- */
.hero-video {
    display: block;
    width: 100%;            /* Se ajusta al ancho del contenedor */
    height: auto;
    object-fit: cover;      /* Cubre el contenedor; si bien puede recortar un poco verticalmente, logra efecto banner */
}


/* --- Estilos de los Iconos de Redes Sociales (Ajustados) --- */
.social-icons-left {
    position: fixed; 
    top: 50%; 
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column; 
    z-index: 1000; 
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px; 
    height: 45px; 
    margin-bottom: 8px; 
    color: white;
    text-decoration: none;
    font-size: 22px; 
    transition: transform 0.3s ease, background-color 0.3s ease;
    
    background-color: #311b92; 
    border-radius: 4px; 
    
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.social-icon.facebook {
    background-color: #1877F2; /* Color de Facebook */
}

.social-icon.instagram {
    background-color: #E4405F; /* Color de Instagram */
}

/* --- Estilos de los Botones Acordeón (Categorías) --- */
.accordion {
    background-color: #4169e1; 
    color: white;
    cursor: pointer;
    padding: 18px 20px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    transition: background-color 0.4s, transform 0.4s;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
}

.accordion:hover, .accordion.active {
    background-color: #3a5bb7;
    transform: scale(1.02);
}

.icon {
    font-size: 24px;
    transition: transform 0.3s;
}

.active .icon {
    transform: rotate(180deg);
}

/* --- Estilos del Panel (Contenido expandido) --- */
.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    margin-bottom: 5px;
    border: 1px solid #ddd; 
    border-top: none; 
}

/* --- Estilos de la Tabla de Precios --- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
}

.price-table th {
    background-color: #00bcd4; 
    color: white;
    padding: 10px;
    text-align: left;
    border-right: 1px solid #00acc1;
}

.price-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #ffffff;
}

.price-table tbody tr:nth-child(even) td {
    background-color: #f5f5f5;
}

.price-table tbody tr td:first-child {
    font-weight: bold;
}

/* Resaltar renglones de la tabla de precios (lista de productos) */
.price-table tbody tr:hover td {
    background-color: #e0f7fa; /* Ajusta el color según prefieras */
}

/* ======================================================== */
/* --- ANIMACIÓN DE ENTRADA PARA MÓVILES --- */
/* ======================================================== */

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ======================================================== */
/* --- ESTILOS PARA LAS TARJETAS DE INFORMACIÓN (Lado a lado) --- */
/* ======================================================== */

.info-cards-section {
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin-top: 30px;
    margin-bottom: 30px; 
    justify-content: center; 
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    background-color: #f9f9f9;
    color: #3b4e92;
    padding: 30px;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    flex: 1 1 380px;
    max-width: calc(50% - 10px);
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- REGLA FALTANTE PARA EL EFECTO HOVER --- */
.info-card:hover {
    background-color: #e7f0fd;
    border-color: #4169e1;
    box-shadow: 0 0 10px #4169e1;
}

/* Ajustes generales para móviles (UNIFICADO) */
@media (max-width: 768px) {
    .container {
        padding: 0 5px; /* Reduce el padding lateral en móviles */
    }

    /* Aplica la animación a la tabla de precios al abrirse en móviles */
    .panel {
        animation: slideInFromLeft 0.5s ease-out forwards;
    }

    .info-card {
        max-width: 100%; 
        flex: 1 1 100%; 
    }

    .map-contact-content {
        flex-direction: column; 
    }
    
    .map-container, .contact-info {
        flex: 1 1 100%; 
        max-width: 100%;
    }

    .social-icon {
        width: 40px; /* Iconos sociales un poco más pequeños */
        height: 40px;
        font-size: 20px;
    }
}

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border: 3px solid white;
    border-radius: 50%;
    margin-bottom: 15px;
    font-size: 36px; 
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-text {
    font-size: 14px;
    line-height: 1.6;
    text-align: center; 
}

/* ======================================================== */
/* --- ESTILOS ADICIONALES PARA MAPA Y CONTACTO (LADO A LADO) --- */
/* ======================================================== */

.map-section {
    margin: 30px auto 50px auto;
    max-width: 800px;
    padding: 0 10px;
}

.map-title {
    text-align: center;
    color: #3b4e92;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: bold;
}

.map-contact-content {
    display: flex;
    flex-wrap: nowrap; 
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
}

.contact-info {
    flex: 0 0 300px;  
    padding: 20px;
    background-color: #f9f9f9; /* Fondo gris claro */
    border: 2px solid #000;  /* Borde negro */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #3b4e92;
    font-size: 15px;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    background-color: #e7f0fd; /* Fondo se vuelve un azul muy sutil */
    border-color: #4169e1; /* Borde cambia a azul */
    box-shadow: 0 0 10px #4169e1;
}

.contact-info p {
    margin-bottom: 15px;
    text-align: left;
}

.contact-info i {
    margin-right: 10px;
    font-size: 18px;
    color: #4169e1;
}

.map-container {
    flex: 1;  
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 3px solid #3b4e92;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Añadir transición */
}

/* Efecto hover para el mapa */
.map-container:hover iframe {
    border-color: #4169e1; /* Borde cambia a azul */
    box-shadow: 0 0 10px #4169e1; /* Efecto de brillo */
}

/* Botón de Contacto */
.contact-button {
    display: block;
    width: 80%;
    margin: 20px auto 0 auto;
    padding: 10px;
    background-color: #4169e1;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #3a5bb7;
}

/* ======================================================== */
/* --- ESTILOS PARA EL PIE DE PÁGINA (FOOTER) --- */
/* ======================================================== */
.footer {
    width: 100%;
    /* Color de fondo para la sección superior (social) */
    background-color: #e6e6e6; 
    color: #3b4e92; /* Color de texto para el social */
    padding: 0; /* Quitamos padding general para controlarlo en las subsecciones */
    margin-top: 40px; 
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0; /* Padding vertical para el contenido social */
    /* El fondo ya es #e6e6e6 por .footer */
}

.footer-icon {
    color: #3b4e92;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s;
}

.footer-icon i {
    margin-right: 5px;
    font-size: 18px;
}

.footer-icon:hover {
    color: #4169e1; 
}

.footer-copyright {
    /* Fondo negro para la franja de derechos de autor */
    background-color: #000000; 
    color: rgba(255, 255, 255, 0.9); /* Texto blanco o ligeramente gris */
    font-size: 13px;
    padding: 10px 0; /* Padding para altura de la franja */
    width: 100%;
    box-sizing: border-box;
}


/* ======================================================== */
/* --- ESTILOS PARA EL BOTÓN FLOTANTE DE WHATSAPP --- */
/* ======================================================== */

.whatsapp-float {
    position: fixed; 
    width: 60px;
    height: 60px;
    bottom: 20px; 
    right: 20px; 
    background-color: #25d366; 
    color: #FFF;
    border-radius: 50px; 
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1500; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none; 
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1); 
    background-color: #128c7e;
}