/* layout.css - Grid y estructura */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Grid system */
.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* Anchos */
.w-full { width: 100%; }
.w-half { width: 50%; }
.w-third { width: 33.333%; }
.w-two-thirds { width: 66.666%; }
.w-quarter { width: 25%; }

/* Altos */
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }

/* Posicionamiento */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Margin y Padding */
.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-xs); }
.m-2 { margin: var(--spacing-sm); }
.m-3 { margin: var(--spacing-md); }
.m-4 { margin: var(--spacing-lg); }
.m-5 { margin: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* Clases específicas para el diseño */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(157, 128, 78, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-xl);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  padding: var(--spacing-xs) 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a.active {
  color: var(--primary-light);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.footer {
  background-color: #161819;
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  padding: 0 var(--spacing-xl);
  max-width: 1440px;
  margin: 0 auto;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
/*. adicionales*/
/* Estilos adicionales para las páginas nuevas */

/* Home Page */
.hero-gradient-1 {
    position: absolute;
    top: 308px;
    left: 835px;
    width: 260px;
    height: 1202px;
    background-color: rgba(157, 128, 78, 0.7);
    border-radius: 130px/601.24px;
    transform: rotate(89.1deg);
    filter: blur(182.3px);
    z-index: -1;
}

.hero-gradient-2 {
    position: absolute;
    top: 245px;
    left: 498px;
    width: 260px;
    height: 1202px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 130px/601.24px;
    transform: rotate(89.1deg);
    filter: blur(171.8px);
    z-index: -1;
}

.hero-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.dot.active {
    background-color: var(--white);
}

/* Values Section */
.kanji-bg {
    text-align: center;
    padding: 40px;
}

.kanji-text {
    font-family: 'Verdana', sans-serif;
    font-size: 400px;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    display: block;
}

.kanji-meaning {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.lightning-icon {
    position: relative;
    width: 42px;
    height: 42px;
    margin: 0 auto;
}

/* Form Styles */
.contact-form-card {
    background: linear-gradient(0deg, rgba(43, 41, 41, 1) 0%, rgba(43, 41, 41, 1) 100%);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.form-section-title {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 20px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-option {
    text-align: center;
    margin-bottom: 30px;
}

.whatsapp-option p {
    color: var(--white);
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

/* Nosotros Page */
.mission-statement {
    max-width: 900px;
    margin: 0 auto 60px;
}

.mission-text-large {
    font-size: 20px;
    line-height: 1.8;
    text-align: center;
    color: var(--white);
}

.mision-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 40px 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.certification-item {
    text-align: center;
}

.certification-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.certification-name {
    color: var(--white);
    font-weight: 600;
}

.federation-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.logo-item {
    width: 120px;
    height: 120px;
    background: var(--gray-medium);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

/* Contact Page */
.contact-form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.checkbox-grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions-contact {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-alternative {
    text-align: left;
}

.whatsapp-alternative p {
    color: var(--white);
    margin-bottom: 15px;
    max-width: 400px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.contact-info-title {
    color: var(--primary-light);
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-info-text {
    color: var(--white);
    line-height: 1.6;
}

.map-container-large {
    background: var(--gray-medium);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
}

.map-placeholder-large {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

.map-marker-large {
    position: relative;
    margin-bottom: 20px;
}

.map-address {
    font-size: 18px;
    margin-top: 20px;
}

.map-controls {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

/* Social Icons Large */
.social-icons-large {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.social-icon-large {
    width: 60px;
    height: 60px;
    background: var(--gray-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon-large:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.social-icon-large img {
    width: 30px;
    height: 30px;
}

/* Gallery */
.gallery-grid {
    margin: 40px 0;
}

.gallery-main {
    width: 100%;
    border-radius: var(--border-radius-lg);
}

/* Responsive adjustments para los nuevos estilos */
@media (max-width: 1024px) {
    .contact-form-two-columns,
    .mision-vision-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions-contact {
        flex-direction: column;
        gap: 30px;
    }
    
    .whatsapp-alternative {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-grid-two-columns {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 20px;
    }
    
    .hero-gradient-1,
    .hero-gradient-2 {
        display: none;
    }
}

/* submenu */
/* Dropdown Styles - CORREGIDOS */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: var(--spacing-xs) 0;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* Esto es clave - se posiciona desde la parte inferior del elemento padre */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--black);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(157, 128, 78, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    margin-top: 8px; /* Espacio entre el botón y el menú */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
}

.dropdown-menu a:hover {
    background-color: rgba(157, 128, 78, 0.1);
    color: var(--primary-light);
    border-left: 3px solid var(--primary);
}

/* Flecha decorativa en la parte superior del dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(157, 128, 78, 0.3);
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--black);
}

/* Asegúrate que el header tenga suficiente altura */
.header-container {
    min-height: 80px; /* Ajusta según necesites */
    display: flex;
    align-items: center;
}

.header-content {
    height: 100%;
}

.main-nav ul {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Para mobile - Ajustes */
@media (max-width: 1024px) {
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding-left: var(--spacing-lg);
        display: none;
        margin-top: 0;
        min-width: auto;
        left: 0;
        width: 100%;
    }
    
    .dropdown-menu::before,
    .dropdown-menu::after {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle::after {
        content: '▶';
    }
    
    .dropdown.active .dropdown-toggle::after {
        content: '▼';
        transform: rotate(90deg);
    }
    
    .dropdown-menu a {
        padding: var(--spacing-sm) var(--spacing-lg);
        border-left: 2px solid transparent;
    }
}

/* Si aún se ve muy abajo, ajusta estos valores */
@media (min-width: 1025px) {
    .dropdown-menu {
        top: calc(100% + 5px); /* Ajusta este valor si es necesario */
    }
}

/* Gallery Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid #9D804E; /* Rojo/color acento */
    background: transparent;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: #9D804E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.filter-btn.active {
    background: #9D804E;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hide {
    display: none;
    /* Si prefieres animación de opacidad en lugar de ocultar:
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 25px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}