/* CSS Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}


/* Paleta de colores */
:root {
    --primary-color: #1a365d;
    /* Azul marino oscuro */
    --secondary-color: #2c5282;
    /* Azul marino medio */
    --accent-color: #4299e1;
    /* Azul claro */
    --light-color: #ebf8ff;
    /* Azul muy claro */
    --danger-color: #e53e3e;
    /* Rojo para acentos */
    --text-color: #2d3748;
    /* Gris azulado oscuro para texto */
    --text-light: #f8fafc;
    /* Blanco para texto sobre fondos oscuros */
    --white-color: #FFFFFF
}


body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

li {
    text-decoration: none;
}

ul {
    list-style: none;
}

p span {
    color: var(--accent-color);
    font-weight: bold;
}

.active-page {
    color: var(--accent-color);
    font-weight: bold;
}


/* Header */
header {
    background-color: var(--primary-color);
    color:   var(--white-color);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 10%;
}

.logo-texto {
    font-size: 1.8rem;
    font-weight: bold;
    color:  var(--white-color);
    text-decoration: none;
}

.logo-texto span {
    color: var(--accent-color);

}

nav ul {
    display: flex;

}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color:  var(--white-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* banner Section */
.banner {
    height: 100vh;
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.8)),
        url('images/index_banner.avif') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 2rem;
}

.banner h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color:  var(--white-color);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-color);
    cursor: pointer;
}

/* Secciones */
section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Sobre Nosotros */
.about {
    background-color:white;
}

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

.about-text {
    flex: 1;
    padding-right: 2rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Categorias */
.categories {
    background-color: var(--light-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-category {
    background-color: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center
}

.categories-category:hover {
    transform: translateY(-10px);
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--light-color);
}

.categories-category:hover p{
    color: var(--accent-color);
}

.categories-category img {
    margin-top: 15px;
    width: 50%;
    height: 50%;

}

.category-info {
    padding: 1.5rem;
    text-align: center;
}

.category-info h3 {
    margin-bottom: 0.5rem;
}

.category-info p {
    color: #666;
}

/* Sección de Contacto - Estilos Mejorados */
.contact {
    background-color:   white;
    padding: 5rem 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Proporción 60%/40% */
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
    /* Asegura igual altura */
}

/* Estilos mejorados para el formulario */
.contact-form {
    background-color: #f8f8f8;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;

}

.contact-form h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color:  var(--white-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.form-group textarea {
    height: 180px;
    resize: vertical;
}

/* Botón del formulario */
.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.contact-form .btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

/* Sección de información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: sticky;
    top: 20px;
}

.contact-info-inside {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e0e0e0;
    border-top: none;
    flex-grow: 1;
}

/* Ajusta el iframe del mapa */
.map-container iframe {
    flex: 1;
    border-radius: 12px 12px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
}


.info-block {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.info-block h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.info-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.info-block p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.info-block i {
    margin-right: 1rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Contenedor del mapa e información */


.map-info-container {
    height: 100%;
    display: flex;
    flex-direction: column;

}

.map-half {
    height: 40%;
    min-height: 250px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-bottom: none;
}

.map-half iframe {
    width: 100%;
    height: 100%;
}

.info-half {
    height: 55%;
    /* Ocupa exactamente la mitad */
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e0e0e0;
    border-top: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--primary-color);
}

.info-half i {
    padding-top: 15px;
}


/* Mantén estos estilos del contenedor principal */
.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}



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

    .contact-info {
        position: static;
        order: -1;
    }

    .map-half,
    .info-half {
        height: auto;
        /* Apila normalmente en móviles */
        min-height: 200px;
    }

    .info-half {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 1.5rem;
    }

    .info-block {
        padding: 1.5rem;
    }
}


/* Alertas del formulario */
.form-alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    color:  var(--white-color);
    animation: fadeIn 0.3s ease-out;
    position: relative;
}

.form-alert-success {
    background-color: #38a169;
}

.form-alert-error {
    background-color: #e53e3e;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Incia footer */

footer {
    background-color: var(--primary-color);
    color: var(--light-color);
}

footer h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    /* Ajuste: el centro tiene más espacio */
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    /* Eliminar padding izquierdo en el contenedor */
    align-items: start;
    font-size: small;
}

.footer-contact {
    justify-self: start;
    padding-left: 10px;
}

.footer-center {
    justify-self: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    text-align: center;
}


.footer-rights {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
}

.footer-center .logo-texto {
    margin-bottom: 15%;
}

.footer-rights .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.social-icon i {
    font-size: large;
}

.social-icon:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
}



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

    .footer-column {
        margin-bottom: 2rem;
    }

    .footer-column:last-child {
        margin-bottom: 0;
    }

    .footer-center .logo-texto {
        margin-bottom: 0%;
    }

        .footer-rights {
        margin-top: 20px;
    }
}

/* Menú móvil */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Animaciones */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #6defac;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}







/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        padding: 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }

    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .banner h1 {
        font-size: 2.5rem;
    }

    .banner p {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

.about-text p {
    margin-bottom: 1rem;
}