/* Estilos generales */
body {
    font-family: "Liter", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}

/* Contenedor */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* Barra de Navegación */
.topbar {
    background: #001d47;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* Cuando se haga scroll, cambia de color y agrega sombra */
.topbar.scrolled {
    background: rgba(0, 29, 71, 0.9);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 10px 0; 
}
.topbar {
    background: #001d47;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 0 0 white; 
}

/* Actualizar el estado scrolled para mantener ambas sombras */
.topbar.scrolled {
    background: rgba(0, 29, 71, 0.9);
    box-shadow: 0 3px 0 0 white, 0px 4px 10px rgba(0, 0, 0, 0.3); 
    padding: 10px 0;
}
/* Navegación */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px;
    transition: height 0.3s ease-in-out;
}

/* Ajusta el tamaño del logo al hacer scroll */
.topbar.scrolled .logo img {
    height: 40px;
}

/* Estilo para el menú desplegable */
nav ul {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
}

nav ul li {
    position: relative; 
}

/* Estilo de los enlaces principales */
nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    color: #4286c0; 
    transform: scale(1.05);
}

/* Nuevo estilo para el despliegue del menú dropdown */
.dropdown-menu {
    display: block;
    position: absolute;
    top: 120%; 
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
    border-radius: 12px;
    width: 240px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    overflow: hidden;
    padding: 8px 0;
}

/* Flecha decorativa en la parte superior */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    z-index: 1000;
}

/* Mostrar submenú al hacer hover con animación */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Estilo para los elementos del submenú */
.dropdown-menu li {
    padding: 0;
    text-align: left;
    transition: background-color 0.2s ease;
}

.dropdown-menu li a {
    color: #001d47;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 12px 20px;
    position: relative;
    transition: all 0.3s ease;
}

/* Efecto de barra lateral al hover */
.dropdown-menu li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: #4286c0;
    transition: width 0.3s ease;
}

.dropdown-menu li a:hover {
    color: #4286c0;
    background-color: rgba(59, 146, 211, 0.1);
    padding-left: 25px;
}

.dropdown-menu li a:hover:before {
    width: 4px;
}

/* Indicador para dropdown */
.dropdown > a {
    display: inline-flex;
    align-items: center;
}

.dropdown > a::after {
    content: "▾";
    margin-left: 8px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Responsividad: ajustar el menú en pantallas pequeñas */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column; 
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: rgba(0, 29, 71, 0.7);
        padding: 0;
        max-height: 0;
        opacity: 1;
        visibility: hidden;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .show-dropdown {
        max-height: 1000px;
        visibility: visible;
        margin-top: 5px;
        margin-bottom: 5px;
        transition: all 0.4s ease;
    }
    
    .dropdown-menu li a {
        color: white;
        padding: 10px 25px;
    }
    
    .dropdown-menu li a:hover {
        background-color: rgba(59, 146, 211, 0.3);
    }
    
    .dropdown-menu li a:before {
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        transform: none;
    }
    
    /* Agregar animación al icono en móvil */
    .dropdown.active > a::after {
        transform: rotate(180deg);
    }
}

/* Estilos para el botón hamburguesa */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* Mostrar/ocultar elementos en pantallas pequeñas */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        position: absolute;
        right: 0px;
        top: 25px;
        transform: translateY(-50%);
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.active {
        display: block;
    }

    .nav-container {
        position: relative;
    }
    
    /* Clase para mostrar el submenú en móvil */
    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: rgba(0, 29, 71, 0.7);
        padding: 0;
        max-height: 0;
        opacity: 1;
        visibility: hidden;
    }
    
    .dropdown-menu li a {
        color: white;
        padding: 10px 25px;
    }
    
    .show-dropdown {
        max-height: 1000px;
        visibility: visible;
        margin-top: 5px;
        margin-bottom: 5px;
        transition: all 0.4s ease;
    }
    
    /* Evitar que hover active el menú en móvil */
    .dropdown:hover .dropdown-menu {
        transform: none;
    }
    
    /* Indicador de menú desplegable */
    .dropdown > a::after {
        content: " ▼";
        font-size: 0.8em;
        vertical-align: middle;
    }
    
    /* Estilo cuando el dropdown está activo */
    .dropdown.active > a::after {
        transform: rotate(180deg);
    }
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('/media/awdimagenes/img-11.jpg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Overlay for improved readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.1), 
        rgba(0, 0, 0, 63%)
    ); /* Gradient overlay */
    z-index: 1;
}

/* Decorative Line */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, 
        transparent, 
        #8B1A1A, 
        transparent
    );
    z-index: 3; 
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    max-width: 90%;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 80%;
    line-height: 1.6;
}
.hero .btn-hero:hover {
    background-color: #800020;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

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

    .hero p {
        font-size: 1.5rem;
    }
}

/* Media queries para hacer el hero responsivo */

/* Tablets */
@media (max-width: 992px) {
    .hero {
      height: 80vh;
    }
    
    .hero-content {
      padding: 30px 40px;
      max-width: 600px;
    }
    
    .hero-content h1 {
      font-size: 2.4rem;
    }
  }
  
  /* Móviles grandes */
  @media (max-width: 768px) {
    .hero {
      height: 70vh;
    }
    
    .hero-content {
      padding: 25px 30px;
      max-width: 90%;
    }
    
    .hero-content h1 {
      font-size: 2rem;
      margin-bottom: 15px;
    }
    
    .hero-content p {
      font-size: 1rem;
      margin-bottom: 20px;
    }
    
    .hero .btn {
      padding: 12px 25px;
      margin-top: 15px;
    }
    
    .hero-indicators {
      bottom: 20px;
    }
  }
  
  /* Móviles pequeños */
  @media (max-width: 576px) {
    .hero {
      height: 60vh;
    }
    
    .hero-content {
      padding: 20px;
    }
    
    .hero-content h1 {
      font-size: 1.8rem;
    }
    
    .hero-content p {
      font-size: 0.95rem;
      line-height: 1.5;
    }
    
    .hero .btn {
      padding: 10px 20px;
      font-size: 0.9rem;
    }
    
    .hero-indicator {
      width: 8px;
      height: 8px;
    }
    
    /* Ajuste para el efecto Ken Burns en pantallas pequeñas */
    @keyframes kenBurns {
      0% {
        transform: scale(1.05) translate(0px, 0px);
      }
      17% {
        transform: scale(1) translate(10px, -5px);
      }
    }
  }

/* contacto */
.contacto {
    background: #FFFFFF;
    color: #333333;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fondo */
.contacto::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(59, 146, 211, 0.08);
    z-index: 0;
}

.contacto::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(0, 31, 91, 0.05);
    z-index: 0;
}

.contacto .container {
    position: relative;
    /*z-index: 1;*/
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacto h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #001F5B;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    text-align: center;
    width: 100%;
}

.contacto h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3B92D3, #001F5B);
    border-radius: 3px;
}

.contacto p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: #555555;
    text-align: center;
}

/*Contenedor centrado con distribución mejorada */
.contact-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
    justify-content: center; 
    box-sizing: border-box;
}

/* Formulario */
.contact-form {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: left;
    border: 1px solid #eaeaea;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    flex: 0 1 450px; 
    min-width: 280px;
    /* margin-left eliminado */
}


.contact-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-form label {
    font-weight: 500;
    display: flex;
    align-items: center;
    color: #333333;
    font-size: 1rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-form label i {
    margin-right: 10px;
    color: #3B92D3;
    font-size: 1.1rem;
    flex-shrink: 0; 
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    height: 57px;
    padding: 12px 15px;
    background: #FFFFFF;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    font-size: 1rem;
    color: #333333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
    overflow-wrap: break-word; 
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3B92D3;
    box-shadow: 0 0 0 2px rgba(59, 146, 211, 0.25);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999999;
}

.contact-form button {
    background: linear-gradient(90deg, #001F5B, #0e2c6b);
    color: #FFFFFF;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 31, 91, 0.3);
    white-space: nowrap; 
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 31, 91, 0.4);
}

.contact-form button:hover::before {
    left: 100%;
}

.contact-form button:active {
    transform: translateY(0);
}

/* Botón alternativo con color burdeos */
.contact-form button.alt-btn {
    background: linear-gradient(90deg, #800020, #9a0026);
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.3);
}

.contact-form button.alt-btn:hover {
    box-shadow: 0 7px 20px rgba(128, 0, 32, 0.4);
}

/* Información de contacto con diseño mejorado y mejor espaciado */
.contact-info {
    width: 100%;
    max-width: 400px;
    text-align: left;
    background: #001F5B;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #FFFFFF;
    flex: 0 1 400px;
    height: fit-content;
    min-width: 280px;
    box-sizing: border-box;
    gap: 0;
    /* margin-left eliminado */
}

.contact-info h3 {
    color: #4286c0;
    margin-bottom: 35px;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3B92D3, rgba(59, 146, 211, 0.3));
    border-radius: 3px;
}

/* espaciado entre elementos */
.contact-info-item {
    margin-bottom: 28px;
    transition: all 0.3s ease;
}

/* Espaciado especial para la dirección (primer elemento) */
.contact-info-item:first-of-type {
    margin-bottom: 45px;
}

/* Espaciado especial para el teléfono */
.contact-info-item:nth-of-type(2) {
    margin-bottom: 30px;
}

/* Espaciado especial para el email */
.contact-info-item:nth-of-type(3) {
    margin-bottom: 30px;
}

/* Espaciado especial para el horario */
.contact-info-item:last-of-type {
    margin-bottom: 35px;
}

.contact-info p {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    margin-bottom: 0;
    color: #FFFFFF;
    word-wrap: break-word;
    flex-wrap: wrap;
    line-height: 1.5;
    text-align: left;
    justify-content: flex-start;
    padding: 5px 0;
    overflow-wrap: break-word;
}

/* Clase especial para elementos con texto de múltiples líneas (como dirección) */
.contact-info p.multi-line {
    align-items: flex-start;
}

.contact-info p.multi-line .contact-info-icon {
    margin-top: 3px;
}

/* Contenedor para el texto de la dirección */
.contact-text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(59, 146, 211, 0.15);
    border-radius: 12px;
    margin-right: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-info p:hover .contact-info-icon {
    transform: scale(1.1);
    background: rgba(59, 146, 211, 0.25);
}

.contact-info p i {
    color: #4286c0;
    font-size: 1.4rem;
}

.contact-info a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-info a:hover {
    color: #3B92D3;
}

/* Redes sociales con más espaciado */
.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #8e181a;
    color: #FFFFFF;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 10px rgba(142, 24, 26, 0.4);
}

/* Clases específicas para mejor organización del contenido */
.contact-address {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-address-line {
    font-size: 1.05rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Separador visual opcional entre secciones */
.contact-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 25px 0;
}

/* Mapa con diseño moderno */
.map-container {
    width: 100%;
    margin-top: 50px;
    padding: 0 20px;
    animation: fadeIn 1s ease-in-out forwards 0.5s;
    opacity: 0;
    display: flex;
    justify-content: center;
}

.mapa {
    width: 80%;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    overflow: hidden;
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Para centrar en toda la pantalla */
.message-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Para centrar entre elementos específicos */
.message-between {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

/* Media queries para responsividad completa */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .contacto .container {
        max-width: 1400px;
    }
    
    .contact-wrapper {
        max-width: 1400px;
        gap: 60px;
        justify-content: center; 
    }
    
    .contact-form {
        max-width: 500px;
        flex: 0 1 500px;
    }
    
    .contact-info {
        max-width: 400px;
        flex: 0 1 400px;
        padding: 30px;
    }
}

/* Large Screens (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .contact-wrapper {
        gap: 50px;
        justify-content: center;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .contact-info-item {
        margin-bottom: 16px;
    }
    
    .contact-info h3 {
        margin-bottom: 20px;
        font-size: 1.7rem;
    }
    
    .contact-social {
        margin-top: 20px;
        justify-content: flex-start;
    }
}

/* Desktop/Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .contacto .container {
        padding: 0 30px;
    }
    
    .contact-wrapper {
        align-items: flex-start;
        justify-content: center;
    }
    
    .contact-form {
        max-width: 420px;
        flex: 0 1 420px; /* Control de crecimiento */
    }
    
    .contact-info {
        max-width: 500px;
        flex: 0 1 400px; /* Control de crecimiento */
    }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .contacto {
        padding: 70px 0;
    }
    
    .contacto h2 {
        font-size: 2.5rem;
    }
    
    .contacto .container {
        padding: 0 25px;
    }
    
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 35px;
        padding: 0 25px;
        justify-content: center;
        width: 100%;
    }
    
    .contact-form,
    .contact-info {
        max-width: 600px;
        width: 100%;
        flex: none;
        margin: 0 auto;
    }
    
    .contact-form {
        padding: 30px;
        box-sizing: border-box;
    }
    
    .contact-info {
        padding: 30px;
        box-sizing: border-box;
        text-align: left;
    }
    
    .contact-info p {
        justify-content: flex-start;
        text-align: left;
    }
    
    .contact-social {
        justify-content: flex-start;
    }
    
    .mapa {
        height: 320px;
        margin: 0 auto;
    }
}

/* Small Tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .contacto {
        padding: 60px 0;
    }
    
    .contacto h2 {
        font-size: 2.3rem;
        text-align: center;
    }
    
    .contacto p {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .contacto .container {
        padding: 0 20px;
    }
    
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 20px;
        justify-content: center;
        width: 100%;
    }
    
    .contact-form,
    .contact-info {
        max-width: 100%;
        width: 100%;
        flex: none;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .contact-info {
        padding: 25px;
        text-align: left;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
        text-align: left;
    }
    
    .contact-info p {
        font-size: 1rem;
        justify-content: flex-start;
        text-align: left;
    }
    
    .contact-social {
        justify-content: flex-start;
    }
    
    .mapa {
        height: 300px;
        margin: 0 auto;
    }
}

/* Móviles pequeños */
@media (max-width: 575px) {
    .contact-info {
        padding: 25px 20px;
    }
    
    .contact-info-item {
        margin-bottom: 22px;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .contact-info-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .contact-social {
        margin-top: 25px;
        gap: 12px;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    /* Mejor manejo de texto largo */
    .contact-info p {
        font-size: 0.95rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-form label {
        font-size: 0.9rem;
        flex-wrap: wrap; 
    }
}

/* Media query adicional para mejor transición en 992px-1024px */
@media (min-width: 992px) and (max-width: 1024px) {
    .contact-wrapper {
        gap: 30px;
        justify-content: center; 
        align-items: flex-start;
    }
    
    .contact-form {
        max-width: 400px;
        flex: 0 1 400px; 
    }
    
    .contact-info {
        max-width: 380px;
        flex: 0 1 380px; 
    }
}

/* CORRECCIÓN PRINCIPAL: Para pantallas grandes mantener centrado */
@media (min-width: 992px) {
    .contact-wrapper {
        align-items: flex-start;
        justify-content: center; 
    }
}

/* Tablets y dispositivos menores mantienen el centrado */
@media (max-width: 991px) {
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .contact-info {
        text-align: left;
    }
    
    .contact-info p {
        justify-content: flex-start;
        text-align: left;
    }
    
    .contact-social {
        justify-content: flex-start;
    }
}

/* Estilos para el Footer */

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

.footer {
    background-color: #001d47;
    color: white;
    padding: 40px 0 20px;
    text-align: left;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1 1 22%;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column:last-child {
    border-right: none;
    padding-right: 0;
}

.footer-info h3,
.footer h4 {
    color: #4286c0;
    margin-bottom: 15px;
    font-size: clamp(16px, 3vw, 18px);
}

.footer-info p {
    font-size: clamp(13px, 2.5vw, 14px);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.footer-info p i, 
.footer-info p a i {
    margin-right: 8px;
    color: #4286c0;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer a:hover {
    color: #8e181a;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(59, 146, 211, 0.2);
    color: white;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.social-icons a:hover {
    color: white;
    background-color: #8e181a;
    transform: translateY(-3px);
}

.footer-logo {
    flex: 1 1 22%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    max-width: 200px;
}

.footer-logo img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    max-width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: clamp(12px, 2vw, 13px);
}

.trademark-notice {
    font-size: clamp(11px, 1.8vw, 12px);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Responsivo */

/* Tablets grandes y laptops pequeñas */
@media (max-width: 1024px) {
    .footer-content {
        gap: 30px;
    }
    
    .footer-column {
        flex: 1 1 45%;
        min-width: 200px;
    }
    
    .footer-logo {
        flex: 1 1 100%;
        order: -1;
        margin-bottom: 20px;
        justify-content: center;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .footer-content {
        gap: 25px;
    }
    
    .footer-column {
        min-width: 180px;
        flex: 1 1 40%;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    .footer {
        padding: 35px 0 18px;
    }
    
    .footer .container {
        padding: 0 18px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        width: 100%;
        max-width: none;
        border-right: none;
        padding-right: 0;
        flex: none;
    }
    
    .footer-logo {
        order: -1;
        margin-bottom: 25px;
        justify-content: flex-start;
        max-width: none;
    }
    
    .footer-logo img {
        width: 130px;
    }
    
    .social-icons {
        justify-content: flex-start;
        gap: 12px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer .container {
        padding: 0 16px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .social-icons {
        justify-content: center;
        gap: 10px;
    }
    
    .social-icons a {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo img {
        width: 120px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .footer {
        padding: 25px 0 12px;
    }
    
    .footer .container {
        padding: 0 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .footer-logo img {
        width: 110px;
    }
    
    .footer-info p i, 
    .footer-info p a i {
        width: 14px;
        margin-right: 6px;
    }
}

/* Móviles extra pequeños (iPhone SE, etc.) */
@media (max-width: 320px) {
    .footer {
        padding: 20px 0 10px;
    }
    
    .footer .container {
        padding: 0 12px;
    }
    
    .footer-content {
        gap: 18px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icons a {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }
    
    .footer-logo img {
        width: 100px;
    }
    
    .footer-info h3,
    .footer h4 {
        margin-bottom: 12px;
    }
    
    .footer-info p {
        margin-bottom: 8px;
    }
}

/* Orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .footer {
        padding: 20px 0 10px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-logo {
        margin-bottom: 15px;
    }
    
    .footer-logo img {
        width: 100px;
    }
}

/* Mejoras para accesibilidad en pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
    .footer a {
        min-height: 48px;
        padding: 8px 0;
    }
    
    .social-icons a {
        min-width: 48px;
        min-height: 48px;
        width: 48px;
        height: 48px;
    }
}

/* Soporte para dispositivos con alta densidad de píxeles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
/* Estilo para el botón de volver arriba */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #8e181a; 
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Estilo cuando el usuario pasa el ratón sobre el botón */
.back-to-top:hover {
    background-color: #4286c0; 
    transform: scale(1.1); 
}

/* Estilo para el foco (accesibilidad) */
.back-to-top:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Efecto al hacer clic */
.back-to-top:active {
    transform: scale(0.95);
}

/* Estilo cuando el botón está visible */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsividad para dispositivos pequeños */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .back-to-top.visible {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
}

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px; 
    background-color: #8e181a; 
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2.5px 2.5px 2.5px rgba(0, 0, 0, 0.2); 
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #4286c0; 
    transform: scale(1.1);
    text-decoration: none;
    color: #FFF;
}

.whatsapp-float:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.fa-whatsapp {
    margin-top: 1px;
}

/* Tooltip informativo */
.whatsapp-float .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #001d47; 
    color: #fff; 
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.whatsapp-float .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #001d47 transparent transparent transparent;
}

.whatsapp-float:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(-5px);
}

/* Responsividad para dispositivos móviles */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 90px; /* Posición ajustada para no chocar con botón "volver arriba" */
        left: 20px; 
        font-size: 25px;
    }
    
    .whatsapp-float .tooltip-text {
        width: 100px;
        margin-left: -50px;
        font-size: 12px;
    }
}

/* Animación de pulso opcional */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(142, 24, 26, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(142, 24, 26, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(142, 24, 26, 0);
    }
}

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


.captcha-wrapper{
    margin-top: 25px;
    margin-bottom: 25px;

    padding: 18px 20px;

    background: linear-gradient(180deg, #f8fafc, #eef3f8);

    border: 1px solid #d9e2ec;
    border-radius: 14px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.06);

    display: flex;
    flex-direction: column;
    align-items: center;

    transition: all 0.25s ease;
}

.captcha-wrapper:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.captcha-text{
    font-size: 0.95rem;
    font-weight: 600;
    color: #001F5B;

    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 0.3px;
}


.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.captcha-container{
    display:flex;
    justify-content:center;
    margin:20px 0;
}
.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.cf-turnstile {
    margin: 0 auto;
}