/* style.css - Contenido completo actualizado */

/* Variables de color */
:root {
    --azul-cielo: #87CEEB;
    --azul-oscuro: #4682B4;
    --blanco: #FFFFFF;
    --sombra: 0 2px 15px rgba(70, 130, 180, 0.15);
    --texto-principal: #333;
    --texto-secundario: #555;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--blanco);
    color: var(--texto-principal);
    scroll-behavior: smooth;
    line-height: 1.6;
    overflow-x: hidden;
}

/* -------------------------------- */
/* HEADER */
/* -------------------------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: rgba(255, 255, 255, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(135, 206, 235, 0.2);
    backdrop-filter: blur(5px);
}

.header.scrolled {
    padding: 1rem 5%;
    border-bottom: 3px solid var(--azul-cielo);
    box-shadow: var(--sombra);
}

.logo-container {
    width: 70px;
    height: 70px;
    transition: all 0.3s ease;
}

.logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--azul-cielo);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(15deg);
}

/* Menú principal */
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--azul-oscuro);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links li a:hover {
    background-color: var(--azul-cielo);
    color: var(--blanco);
    transform: translateY(-2px);
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--azul-oscuro);
    background: none;
    border: none;
    z-index: 1001;
}

/* -------------------------------- */
/* CONTENIDO PRINCIPAL */
/* -------------------------------- */
main {
    margin-top: 90px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--azul-oscuro);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--azul-cielo);
}

/* Sección Presentación */
.presentacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 5%;
    min-height: calc(100vh - 90px);
}

.presentacion-texto {
    flex: 1;
    max-width: 50%;
    padding-right: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.presentacion-texto.animated {
    opacity: 1;
    transform: translateY(0);
}

.presentacion-texto h2 {
    font-size: 2.3rem;
    color: var(--azul-oscuro);
    margin-bottom: 1.5rem;
}

.presentacion-texto p {
    font-size: 1.1rem;
    color: var(--texto-secundario);
    margin-bottom: 1.5rem;
}

.presentacion-texto ul {
    list-style: none;
    margin: 1.5rem 0;
}

.presentacion-texto li {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-button {
    padding: 0.8rem 1.8rem;
    background-color: var(--azul-cielo);
    color: var(--blanco);
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: var(--azul-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(70, 130, 180, 0.3);
}

.presentacion-imagen {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
}

.presentacion-imagen img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease 0.2s;
}

.presentacion-imagen img.animated {
    opacity: 1;
    transform: translateX(0);
}

/* -------------------------------- */
/* SECCIÓN NOSOTROS */
/* -------------------------------- */
.nosotros {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 5%;
    background-color: rgba(135, 206, 235, 0.05);
}

.nosotros-imagen {
    flex: 1;
    max-width: 50%;
    padding-left: 3rem;
    display: flex;
    justify-content: center;
}

.nosotros-imagen img {
    width: 100%;
    max-width: 450px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.nosotros-imagen img.animated {
    opacity: 1;
    transform: translateX(0);
}

.nosotros-texto {
    flex: 1;
    max-width: 50%;
    padding-right: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

.nosotros-texto.animated {
    opacity: 1;
    transform: translateY(0);
}

.nosotros-texto h2 {
    font-size: 2.3rem;
    color: var(--azul-oscuro);
    margin-bottom: 1.5rem;
    position: relative;
}

.nosotros-texto h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background-color: var(--azul-cielo);
}

.nosotros-texto p {
    font-size: 1.1rem;
    color: var(--texto-secundario);
    margin-bottom: 1.5rem;
}

.nosotros-btn {
    padding: 0.8rem 1.8rem;
    background-color: var(--azul-cielo);
    color: var(--blanco);
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.nosotros-btn:hover {
    background-color: var(--azul-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(70, 130, 180, 0.3);
}

/* -------------------------------- */
/* SECCIÓN SERVICIOS */
/* -------------------------------- */
.servicios {
    padding: 5rem 5%;
    background-color: var(--blanco);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.servicio-card {
    background: var(--blanco);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--sombra);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.servicio-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(70, 130, 180, 0.2);
}

.servicio-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: rgba(135, 206, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--azul-oscuro);
    transition: all 0.3s ease;
}

.servicio-card:hover .servicio-icon {
    background-color: var(--azul-cielo);
    color: var(--blanco);
    transform: rotateY(180deg);
}

.servicio-card h3 {
    margin-bottom: 1rem;
    color: var(--azul-oscuro);
}

.servicio-card p {
    color: var(--texto-secundario);
    font-size: 0.95rem;
}

/* -------------------------------- */
/* SECCIÓN GALERÍA */
/* -------------------------------- */
.galeria {
    padding: 5rem 5%;
    background-color: rgba(135, 206, 235, 0.05);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(70, 130, 180, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.video-item .gallery-overlay i {
    color: var(--azul-cielo);
}

/* -------------------------------- */
/* SECCIÓN CONTACTO */
/* -------------------------------- */
.contacto {
    padding: 5rem 5%;
    background-color: var(--blanco);
}

.contacto-container {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.contacto-info {
    flex: 1;
    padding: 2rem;
    background-color: rgba(135, 206, 235, 0.1);
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--azul-oscuro);
    width: 30px;
    height: 30px;
    background-color: rgba(135, 206, 235, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--azul-cielo);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--azul-oscuro);
    transform: translateY(-3px);
}

.contacto-form {
    flex: 1;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--sombra);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--azul-cielo);
    outline: none;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* -------------------------------- */
/* FOOTER */
/* -------------------------------- */
.footer {
    background-color: var(--azul-oscuro);
    color: white;
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    width: 100px;
    height: auto;
    border-radius: 50%;
    border: 2px solid var(--azul-cielo);
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--azul-cielo);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--azul-cielo);
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--azul-cielo);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

/* -------------------------------- */
/* ANIMACIONES */
/* -------------------------------- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* -------------------------------- */
/* RESPONSIVE */
/* -------------------------------- */
@media (max-width: 992px) {
    .presentacion-texto h2,
    .nosotros-texto h2,
    .section-title {
        font-size: 2rem;
    }
    
    .contacto-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 5%;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--blanco);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
        padding-top: 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .presentacion,
    .nosotros {
        flex-direction: column;
        padding: 3rem 5%;
    }

    .presentacion-texto,
    .presentacion-imagen,
    .nosotros-texto,
    .nosotros-imagen {
        max-width: 100%;
        padding: 0;
        text-align: center;
    }

    .presentacion-texto,
    .nosotros-texto {
        margin-bottom: 2rem;
    }

    .nosotros-texto h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nosotros-imagen {
        padding-left: 0;
        margin-top: 2rem;
    }

    .presentacion-imagen img,
    .nosotros-imagen img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 60px;
        height: 60px;
    }

    .presentacion-texto h2,
    .nosotros-texto h2,
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}