/* ============================================
   interiCat - Legal Pages Stylesheet
   ============================================ */

/* ============================================
   VARIABLES DE COLOR
   ============================================ */
:root {
    /* Colores del logo */
    --logo-green: #3dcb2b;
    --logo-purple: #543ccd;
    --logo-orange: #f8571a;
    
    /* Gradiente completo arcoíris */
    --gradient-full: linear-gradient(90deg, 
        #FFEB3B 0%,
        #8BC34A 20%,
        #00BCD4 40%,
        #5C6BC0 60%,
        #9C27B0 80%,
        #E91E63 100%
    );
    
    /* Colores base */
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--dark);
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--logo-green);
}

/* Selector de idioma */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--light-gray);
    padding: 0.5rem;
    border-radius: 50px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray);
}

.lang-btn.active {
    background: white;
    color: var(--logo-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover:not(.active) {
    color: var(--logo-green);
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-full);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-header .update-date {
    color: var(--gray);
    font-size: 1rem;
    background: var(--light-gray);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* ============================================
   CONTENT CARD
   ============================================ */
.content-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.6s ease 0.2s backwards;
}

.content-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--logo-green);
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--logo-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-card p {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.content-card ul,
.content-card ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.content-card li {
    margin-bottom: 0.5rem;
}

.content-card strong {
    color: var(--logo-green);
    font-weight: 600;
}

.content-card a {
    color: var(--logo-purple);
    text-decoration: none;
    font-weight: 600;
}

.content-card a:hover {
    text-decoration: underline;
}

/* ============================================
   HIGHLIGHT BOXES
   ============================================ */
.highlight-box {
    background: var(--light-gray);
    border-left: 4px solid var(--logo-green);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
}

.info-box {
    background: linear-gradient(135deg, rgba(61, 203, 43, 0.05), rgba(84, 60, 205, 0.05));
    border: 2px solid rgba(61, 203, 43, 0.2);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
}

.warning-box {
    background: rgba(255, 165, 0, 0.1);
    border-left: 4px solid orange;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
}

.warning-box strong {
    color: orange;
}

/* ============================================
   BOTONES
   ============================================ */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--logo-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.back-button:hover {
    background: var(--logo-purple);
    transform: translateX(-5px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--logo-green);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.hidden {
    display: none !important;
}
