/* Estilos compartidos para Rappicasa Multi-Página */

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* Navbar */
#navbar {
    transition: all 0.3s ease;
}

#navbar button.nav-link,
#navbar a.nav-link {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0 !important;
    position: relative;
}

#navbar button.nav-link:hover,
#navbar a.nav-link:hover {
    background-color: transparent !important;
}

#navbar button.nav-link.active-nav,
#navbar a.nav-link.active-nav {
    color: #f59e0b !important;
}

#navbar button.nav-link.active-nav::after,
#navbar a.nav-link.active-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #f59e0b;
}

/* Footer */
.footer-steeler {
    background-color: #111111;
    color: #a8a8a8;
}

.footer-link-square::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #f59e0b;
    margin-right: 12px;
    margin-bottom: 2px;
}

.newsletter-input {
    background: white;
    border: none;
    height: 50px;
    padding-left: 15px;
    color: #333;
    width: 100%;
}

.newsletter-btn {
    background: #f59e0b;
    color: white;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-btn:hover {
    background: white;
    color: #f59e0b;
}

.social-box {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all 0.3s;
}

.social-box:hover {
    background: #f59e0b;
    color: white;
}

/* Botones */
.btn-primary {
    background-color: #f59e0b !important;
    color: white !important;
    padding: 0.75rem 2rem !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
    border: none !important;
    text-decoration: none !important;
}

.btn-primary:hover {
    background-color: #d97706 !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #1e293b !important;
    color: white !important;
    border: 1px solid #334155 !important;
    padding: 0.75rem 2rem !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none !important;
}

.btn-secondary:hover {
    background-color: #0f172a !important;
    border-color: #f59e0b !important;
}

img {
    filter: contrast(115%) saturate(85%);
}

/* Hero */
#hero-rappicasa {
    position: relative;
    padding: 80px 20px 50px 20px;
    background: #0f172a;
    overflow: hidden;
}

#hero-rappicasa .hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?q=80&w=2053&auto=format&fit=crop') center/cover no-repeat;
    opacity: 0.4;
}

#hero-rappicasa .hero-content {
    position: relative;
    max-width: 320px;
    z-index: 2;
}

#hero-rappicasa h1 {
    font-family: 'Oswald', sans-serif !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    color: white !important;
    margin: 15px 0 !important;
}

#hero-rappicasa h1 span {
    color: #f59e0b !important;
}

#hero-rappicasa p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #cbd5e1 !important;
    margin-bottom: 20px !important;
}

#hero-rappicasa .hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    color: #fbbf24;
    margin-bottom: 15px;
}

#hero-rappicasa .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 1024px) {
    #hero-rappicasa {
        padding: 160px 40px;
    }

    #hero-rappicasa .hero-content {
        max-width: 700px;
    }

    #hero-rappicasa h1 {
        font-size: 70px !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
    }
}

/* Mobile spacing fix */
@media (max-width: 768px) {
    #hero-rappicasa {
        padding-top: 140px !important;
    }
}

/* Mobile menu */
#mobile-menu {
    z-index: 9999 !important;
}

@media (max-width: 1024px) {
    #navbar .lg\:flex {
        display: none !important;
    }

    #mobile-toggle {
        display: block !important;
    }

    #navbar {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(8px);
    }

    #mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 120px;
        padding-bottom: 40px;
        gap: 28px;
        text-align: center;
    }

    #mobile-menu a {
        font-size: 24px;
        font-weight: 700;
        letter-spacing: 1px;
        color: white;
        text-decoration: none;
    }

    #mobile-menu a.btn-primary {
        font-size: 18px;
        margin: 20px 24px 0 24px;
    }
}

#mobile-menu.hidden {
    display: none !important;
}

#mobile-menu.flex {
    display: flex !important;
}

@media (max-width: 1024px) {
    #nav-brand {
        color: white !important;
    }
}

/* Mobile icons */
@media (max-width: 768px) {
    [data-lucide] {
        width: 22px !important;
        height: 22px !important;
    }

    .text-green-500 svg,
    .text-amber-500 svg,
    .text-blue-500 svg {
        stroke-width: 2.5;
    }
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 8px;
    background: linear-gradient(to right, #f59e0b 0%, #f59e0b 50%, #e5e7eb 50%, #e5e7eb 100%);
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f59e0b;
    border: 4px solid white;
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f59e0b;
    border: 4px solid white;
    cursor: pointer;
}

/* Page header para páginas internas */
.page-header {
    position: relative;
    padding: 140px 20px 80px 20px;
    background: #0f172a;
    overflow: hidden;
    text-align: center;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 1));
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-header h1 span {
    color: #f59e0b;
}

.page-header p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 4rem;
    }
}

/* Cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ===== SEO y Accesibilidad ===== */

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

.sr-only:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus visible para navegación por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Line clamp para descripciones */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mejoras para FAQ accordion */
details > summary {
    list-style: none;
    cursor: pointer;
}

details > summary::-webkit-details-marker {
    display: none;
}

details[open] summary ~ * {
    animation: fadeIn 0.3s ease-out;
}

/* Mejoras de contraste */
.text-slate-400 {
    color: #94a3b8;
}

/* Optimización para impresión */
@media print {
    #navbar,
    #mobile-menu,
    .btn-primary,
    .btn-secondary,
    .newsletter-btn,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        text-decoration: underline;
        color: black !important;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* Reducir motion para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
