/* Variables de colores */
:root {
    --primary: #1B3463; /* Azul marino */
    --secondary: #4A90B0; /* Azul claro */
    --text-dark: #666666; /* Gris oscuro */
    --white: #FFFFFF; /* Blanco */
    --black: #000000; /* Negro */
}

/* Estilos generales */
body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Contenedor principal */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevenir scroll horizontal */
    width: 100%;
}

/* Contenido principal */
.inner-page {
    flex: 1;
    margin-top: 80px; /* Ajusta este valor según la altura del encabezado */
    padding: 2rem 0;
}

/* Contenedor principal del contenido */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Banner de la página */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%), url('../assets/images/pattern-light.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: -30px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-banner h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.page-banner h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--white);
}

/* Estilos del header */
.main-header {
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    transform: translateY(0);
    background-color: var(--primary);
}

.main-header.hidden {
    transform: translateY(-100%);
}

.main-header.transparent {
    background-color: var(--primary);
}

.main-header.transparent .nav-menu a,
.main-header.transparent .social-link,
.main-header.transparent .language-selector {
    color: var(--white);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled .nav-menu a,
.main-header.scrolled .social-link,
.main-header.scrolled .language-selector {
    color: var(--primary);
}

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

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    width: 10%;
    height: 1%;
}

.logo-header {
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 25%;
}

.logo-link img {
    width: 40%;
    height: 40%;
}

.logo-link:hover .logo-header {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--primary);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 1;
}

.language-selector {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s linear;
}

/* Cuando el menú está activo */
.hamburger.active {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    left: auto;
}

/* Estilos de la X cuando el menú está activo */
.hamburger.active span {
    background: var(--white);
}

/* Animación para convertir en X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Estilos para la sección de contacto */
.contact-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.contact-form-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.contact-info {
    flex: 1 1 300px;
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.contact-info h2 {
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--secondary);
    min-width: 20px; /* Asegura que los iconos se alineen correctamente */
    text-align: center;
}

.contact-method span {
    word-break: break-word; /* Evita que los textos largos desborden */
    line-height: 1.4;
    font-size: 0.95rem;
}

.contact-form {
    flex: 1 1 500px;
    padding: 3rem 2rem;
    box-sizing: border-box;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(27, 52, 99, 0.2);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-submit {
    margin-top: 2rem;
}

.submit-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary);
}

/* Estilos para mensajes de error */
.error-message {
    color: #FF3B30;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

/* Success overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.success-message {
    background-color: var(--primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
}

.success-message h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message p {
    margin-bottom: 1.5rem;
}

.close-btn {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #3a7a95;
}

/* Media Queries para diseño responsive */
@media (max-width: 992px) {
    .contact-content {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-right: 30px;
    }

    .social-links {
        display: none;
    }

    .header-right {
        display: flex;
        align-items: center;
    }

    .language-selector {
        order: 1;
    }

    .hamburger {
        order: 2;
    }
    
    .header-left img {
        width: 20%;
        height: 1%;
    }

    .logo-link img {
        width: 70%;
        height: 70%;
    }

    .main-header {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
    }

    .logo-header {
        height: 30px;
    }
    
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 60%;
        height: 100vh;
        background: rgba(27, 52, 99, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
    }

    .nav-menu.active {
        margin: 0;
        display: flex;
    }

    .nav-menu a {
        color: var(--white);
    }

    /* Ajustes especiales para la página de contacto en tablet/móviles */
    .page-banner {
        height: 300px;
        margin-top: -25px;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .inner-page {
        margin-top: 60px;
        padding-top: 1rem;
    }

    .contact-content {
        padding: 0 1rem;
    }

    .contact-form-container {
        flex-direction: column;
        border-radius: 8px;
        margin-top: 1rem;
        overflow: hidden;
    }

    .contact-info {
        width: 100%;
        padding: 2rem;
        border-radius: 8px 8px 0 0;
    }

    .contact-form {
        width: 100%;
        padding: 2rem;
    }
    
    .success-message {
        padding: 1.5rem;
        max-width: 90%;
        margin: 0 1rem;
    }
    
    .success-message h3 {
        font-size: 1.3rem;
    }
    
    .close-btn {
        padding: 0.7rem 1.2rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .whatsapp-float i {
        font-size: 25px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .contact-content {
        padding: 0 0.5rem;
        margin-top: 1rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }
    
    .contact-method i {
        font-size: 1rem;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 220px;
    }
    
    .page-banner h1 {
        font-size: 1.6rem;
    }
    
    .contact-info h2 {
        font-size: 1.3rem;
    }
    
    .inner-page {
        margin-top: 50px;
    }
    
    .contact-info {
        padding: 1.2rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-submit {
        margin-top: 1.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
}

/* Estilos del footer */
.main-footer {
    background: #000;
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto; /* Asegura que el footer esté siempre al final */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.footer-text h3 {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.footer-text a,
.footer-text p {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-logo img {
    height: 100px;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .footer-container {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-logo {
        order: -1;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-item {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 1rem;
    }

    .footer-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-text h3 {
        margin-bottom: 0.2rem;
    }

    .footer-logo img {
        height: 60px;
    }
}

/* Estilos para inputs con foco */
.form-group.focused label {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(-2px);
}

.form-group.focused input,
.form-group.focused textarea {
    border-color: var(--primary);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

/* Efecto de ondas para el botón de WhatsApp */
.whatsapp-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.7;
    animation: ripple 2s ease-out infinite;
    z-index: -1;
}

.whatsapp-float i {
    font-size: 30px;
}

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

.whatsapp-float:active {
    transform: scale(0.95);
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .whatsapp-float i {
        font-size: 25px;
    }
} 