/* =============================================
   FARTELLA ART - DISEÑO ARTÍSTICO
   ============================================= */

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-light: #ff6b6b;
    --gold: #f39c12;
    --cream: #faf8f5;
    --text: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --gradient-art: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-medium: 0 20px 60px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.8;
    font-size: 17px;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */

header {
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
    font-weight: 300;
}

.logo-art {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

.logo-circle {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

.logo-square {
    width: 10px;
    height: 10px;
    background: var(--gold);
    transform: rotate(45deg);
}

.logo-triangle {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid #667eea;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-art);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-art {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.12) 0%, rgba(241, 196, 15, 0.12) 100%);
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    bottom: 20%;
    right: 10%;
    animation-delay: -15s;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.15) 0%, rgba(245, 87, 108, 0.15) 100%);
    top: 20%;
    left: 15%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 10px) rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-art);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: var(--gradient-art);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.8;
}

.btn-explore {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.3);
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(26, 26, 46, 0.4);
}

/* =============================================
   SECTION HEADERS
   ============================================= */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.header-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-art);
    margin: 0 auto;
    border-radius: 2px;
}

/* =============================================
   ABOUT SECTION
   ============================================= */

.about-section {
    padding: 100px 0;
    background: var(--white);
}

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

.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.mission .card-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #667eea;
}

.vision .card-icon {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.15) 0%, rgba(255, 107, 107, 0.15) 100%);
    color: var(--accent);
}

.values .card-icon {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15) 0%, rgba(241, 196, 15, 0.15) 100%);
    color: var(--gold);
}

.commitment .card-icon {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    color: #4facfe;
}

.about-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.values-list {
    list-style: none;
    margin-top: 10px;
}

.values-list li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.values-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

/* =============================================
   EDUCATION SECTION
   ============================================= */

.education-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.edu-article {
    background: var(--white);
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.04);
}

.article-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--cream);
}

.article-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-art);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.article-header h3 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 600;
}

.article-intro {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.art-period,
.technique-section,
.theory-section,
.appreciation-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.art-period:last-child,
.technique-section:last-child,
.theory-section:last-child,
.appreciation-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-content h4 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.article-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.article-content p {
    margin-bottom: 18px;
    color: var(--text);
    text-align: justify;
}

.article-content ul {
    margin: 20px 0 20px 25px;
}

.article-content li {
    margin-bottom: 12px;
    color: var(--text);
    position: relative;
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta-section {
    padding: 80px 0;
    background: var(--gradient-art);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--accent);
    font-weight: 300;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* =============================================
   PAGES - POLÍTICAS, TÉRMINOS, CONTACTO
   ============================================= */

.page-hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 50%;
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin: 50px 0 20px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

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

.content-wrapper h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.content-wrapper p {
    margin-bottom: 20px;
    color: var(--text);
    text-align: justify;
}

.content-wrapper ul {
    margin: 20px 0 20px 30px;
}

.content-wrapper li {
    margin-bottom: 12px;
    color: var(--text);
}

.update-date {
    display: inline-block;
    background: var(--cream);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Contact Page Specific */
.contact-card {
    background: var(--white);
    padding: 50px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-art);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.contact-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.contact-card h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-left: 0;
}

.contact-card h2::before {
    display: none;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: center;
}

.email-link {
    display: inline-block;
    font-size: 1.3rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 35px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(255, 107, 107, 0.2) 100%);
}

.contact-note {
    margin-top: 40px;
    padding: 25px;
    background: var(--cream);
    border-radius: 15px;
    border-left: 4px solid var(--gold);
}

.contact-note p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: left;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-header h2,
    .page-hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 15px;
    }

    .edu-article {
        padding: 30px 25px;
    }

    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .article-number {
        font-size: 2rem;
    }

    .article-header h3 {
        font-size: 1.4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floating-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

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

    .hero h1 {
        font-size: 1.9rem;
    }

    .btn-explore {
        padding: 14px 30px;
    }

    .about-card {
        padding: 30px;
    }

    .contact-card {
        padding: 35px 25px;
    }
}
