/**
 * Header styles for Wasabi IGV Calculator
 */

/* Tailwind CSS clase base */
.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Estilos del header */
.header-container {
    background: linear-gradient(135deg, #a10e0d 0%, #E01413 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%; /* Asegura que el fondo ocupe el ancho completo */
}

.header-title {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header-title:hover {
    transform: translateY(-2px);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #f8b4b4;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f8b4b4;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Estilos para el botón de descarga */
.download-btn {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Botón de menú móvil */
.menu-button-container {
    display: none;
    position: relative;
    z-index: 100;
}

@media (max-width: 767px) {
    .menu-button-container {
        display: block;
    }
    
    .desktop-menu {
        display: none !important;
    }
}

#mobile-toggle-button {
    display: block;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

#mobile-toggle-button:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Estilos para el menú móvil */
#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 90%;
    height: 100vh;
    background-color: #fff;
    z-index: 1002;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 60px 20px 20px;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Overlay del menú móvil */
#mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
}

/* Botón para cerrar el menú */
#mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    z-index: 1003;
}

#mobile-menu-close:hover {
    color: #E01413;
}

/* Enlaces del menú móvil */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-link {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-menu-link:hover {
    color: #E01413;
}

/* Evitar scroll cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Layout clases */
.container {
    width: 100%;
    max-width: 1140px; /* Reducido de su valor predeterminado */
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px; /* Tamaño medio para pantallas más pequeñas */
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px; /* Tamaño más pequeño para tablets */
    }
}

.flex {
    display: flex;
}

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

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

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-white {
    color: #fff;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.bg-green-600 {
    background-color: #16a34a;
}

.hover\:bg-green-700:hover {
    background-color: #15803d;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Responsive classes */
@media (min-width: 768px) {
    .md\:hidden {
        display: none !important;
    }
    
    .md\:flex {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    .md\:flex {
        display: none !important;
    }
    
    .menu-button-container {
        display: block !important;
    }
    
    .hidden {
        display: block;
    }
}

/* Estilos para el modal de imágenes */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
} 