html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

section {
    width: 100%;
    overflow-x: hidden;
}

.contact {
    width: 100%;
    overflow-x: hidden;
}

.contact-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
}

iframe {
    max-width: 100%;
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden !important;
    }
    
    .contact-grid {
        flex-direction: column;
        width: 100% !important;
        padding: 0 15px;
    }
    
    iframe {
        height: 800px !important;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    html, body {
        width: 100%;
        overflow-x: hidden !important;
    }
    
    .contact-grid {
        width: 100% !important;
        flex-direction: column;
        padding: 20px 10px;
        margin: 0;
    }
    
    iframe {
        height: 700px !important;
        max-width: 100%;
        width: 100%;
    }
}
/* ===== NAVBAR HAMBURGUESA RESPONSIVO ===== */

.navbar-hamburguesa {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2f4a 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* LOGO Y BRAND */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-logo-img {
  height: 35px;
  width: auto;
  border-radius: 4px;
}

.nav-brand-text {
    color: #f4d03f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* CHECKBOX OCULTO */
.hamburger-input {
    display: none;
}

/* ICONO HAMBURGUESA (OCULTO EN DESKTOP) */
.hamburger-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger-icon span {
    width: 28px;
    height: 2.5px;
    background-color: #f4d03f;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ANIMACIÓN HAMBURGUESA CUANDO ESTÁ ABIERTO */
.hamburger-input:checked ~ .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.hamburger-input:checked ~ .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-input:checked ~ .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* MENÚ (DESKTOP) */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover {
    color: #f4d03f;
    background-color: rgba(244, 208, 63, 0.1);
    transform: translateY(-2px);
}

.nav-link:active {
    color: #f4d03f;
}

/* ===== MEDIA QUERIES PARA MÓVIL ===== */

@media (max-width: 768px) {
    /* MOSTRAR HAMBURGUESA EN MÓVIL */
    .hamburger-icon {
        display: flex;
    }
    
    /* MENÚ MÓVIL (OCULTO POR DEFECTO) */
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(135deg, #0d1b2a 0%, #1a2f4a 100%);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(244, 208, 63, 0.2);
    }
    
    /* MOSTRAR MENÚ CUANDO HAMBURGUESA ESTÁ ACTIVADO */
    .hamburger-input:checked ~ .nav-menu {
        max-height: 300px;
    }
    
    .nav-item {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(244, 208, 63, 0.1);
    }
    
    .nav-link {
        width: 100%;
        padding: 16px 20px;
        border-radius: 0;
        text-align: left;
        font-size: 16px;
    }
    
    .nav-link:hover {
        background-color: rgba(244, 208, 63, 0.15);
        transform: none;
        padding-left: 25px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 12px 15px;
    }
    
    .nav-brand-text {
        font-size: 16px;
    }
    
    .nav-logo-img {
        height: 45px;
    }
    
    .nav-menu {
        top: 65px;
    }
    
    .hamburger-input:checked ~ .nav-menu {
        max-height: 280px;
    }
    
    .nav-link {
        padding: 14px 15px;
        font-size: 15px;
    }
}
/* ===== LAYOUT CONTACTO ===== */
.contact-grid {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* Columna izquierda */
.contact-info {
  flex: 1;
}

/* Columna derecha (formulario) */
.contact-form {
  flex: 1;
}

/* ===== RESPONSIVE: MÓVIL ===== */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column; /* se apilan */
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }
}