/* ==========================================================================
   Lomas del Daymán - Estilos principales
   ========================================================================== */

/* Configuración base
   ========================================================================== */

   html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Gradientes y overlays
   ========================================================================== */

.hero-gradient {
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

/* Bordes decorativos
   ========================================================================== */

.stat-border {
    border-left: 4px solid #E07A3D;
}

.l-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #E07A3D;
}

.l-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 60px;
    background: #E07A3D;
}

/* Efectos de imagen
   ========================================================================== */

.img-zoom {
    transition: transform 0.4s ease-out;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* Menú hamburguesa
   ========================================================================== */

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1A1A1A;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: center;
}

.hamburger-line-1 {
    width: 100%;
}

.hamburger-line-2 {
    width: 70%;
    margin-left: auto;
}

.hamburger-line-3 {
    width: 85%;
}

#mobile-menu-btn:hover .hamburger-line-2 {
    width: 100%;
}

.hamburger-active .hamburger-line-1 {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-active .hamburger-line-2 {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger-active .hamburger-line-3 {
    width: 100%;
    transform: translateY(-8px) rotate(-45deg);
}

/* Menú móvil
   ========================================================================== */

.mobile-menu-closed {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, visibility 0.3s;
}

.mobile-menu-open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-in;
}

.mobile-menu-open .mobile-nav-link {
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
}

.mobile-menu-open .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Formularios
   ========================================================================== */

.invalid-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.form-error .border {
    border-color: #dc2626 !important;
}

label {
    cursor: pointer;
}

input:focus, textarea:focus, select:focus {
    outline: 3px solid #E07A3D;
    outline-offset: 2px;
}

/* reCAPTCHA
   ========================================================================== */

.grecaptcha-badge {
    visibility: hidden;
}

/* Accesibilidad - Skip links
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #E07A3D;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Accesibilidad - Focus visible
   ========================================================================== */

*:focus-visible {
    outline: 3px solid #E07A3D;
    outline-offset: 2px;
}

/* Accesibilidad - Screen reader only
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Media queries - Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Media queries - High contrast
   ========================================================================== */

@media (prefers-contrast: high) {
    .text-white\/60 {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    .text-white\/70 {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    .text-white\/80 {
        color: rgba(255, 255, 255, 0.95) !important;
    }
}
