*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green: #B17F03;
    --green-dark: #8a6202;
    --green-light: #f7f0e0;
    --text-dark: #1a1a1a;
    --text-mid: #444;
    --text-light: #777;
    --bg: #fafaf8;
    --white: #ffffff;
    --gold: #B17F03;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.7;
}

/* ── HEADER / NAV ── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo { height: 48px; width: auto; }

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 2px;
    background: var(--green);
    transition: width 0.25s;
}

.nav-link:hover { color: var(--green); }
.nav-link:hover::after { width: 100%; }

.nav-menu-link_active {
    color: var(--green);
    font-weight: 600;
}

.nav-menu-item.dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100% ;
    left: 0;
    background: var(--white);
    border: 1px solid #f3ecec;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    min-width: 200px;
    list-style: none;
    padding: 0.8rem 0 0.4rem;
    z-index: 200;
}

.nav-menu-item.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu-item a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu-item a:hover {
    background: var(--green-light);
    color: var(--green);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── HERO ── */
.hero {
    position: relative;
    height: 52vh;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1000 0%, #976d02 60%, #d4a23a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('IMAGEN/malaga1.jpg') center/cover no-repeat;
    opacity: 0.18;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
}

.hero-eyebrow {
    font-family: 'Poiret One', cursive;
    font-size: 1rem;
    letter-spacing: 0.25em;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Poiret One', cursive;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 2.15;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin: 0 auto;
}

/* ── SECCIÓN INTRO ── */
.section-intro {
    max-width: 820px;
    margin: 5rem auto;
    padding: 0 2rem;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
}

.section-intro h2 {
    font-family: 'Poiret One', cursive;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1.6rem;
}

.section-intro p {
    font-size: 1.08rem;
    color: var(--text-mid);
    line-height: 1.85;
}

/* ── CIFRAS ── */
.stats {
    background: var(--green);
    padding: 4rem 2rem;
}

.stats-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.stat-number {
    font-family: 'Poiret One', cursive;
    font-size: 3.2rem;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(250, 248, 248, 0.8);
    text-transform: uppercase;
}

.stat-tagline {
    font-size: 1.15rem;
    letter-spacing: 0.18em;
    line-height: 2.2;
    margin-top: 2.5rem;
}

/* ── VALORES ── */
.values {
    max-width: 1100px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.values-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.values-header h2 {
    font-family: 'Poiret One', cursive;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.2rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--green);
    transition: transform 0.25s, box-shadow 0.25s;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(177,127,3,0.12);
}

.value-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-light);
    border-radius: 14px;
    padding: 12px;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card h3 {
    font-family: 'Poiret One', cursive;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* ── MISIÓN / VISIÓN ── */
.mv-section {
    background: linear-gradient(135deg, #1a1000, #B17F03);
    padding: 5rem 2rem;
    margin: 0;
}

.mv-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mv-block {
    color: var(--white);
}

.mv-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.8rem;
}

.mv-block h3 {
    font-family: 'Poiret One', cursive;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    color: var(--white);
}

.mv-block p {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.87);
}

/* ── HISTORIA ── */
.history {
    max-width: 820px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.history-header {
    text-align: center;
    margin-bottom: 3rem;
}

.history-header h2 {
    font-family: 'Poiret One', cursive;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--green), #e8cc80);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.85rem;
    top: 6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--green);
}

.timeline-year {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--green);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.timeline-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.timeline-item p {
    font-size: 0.97rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* ── CONTACTO CTA ── */
.cta {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--green-light);
}

.cta h2 {
    font-family: 'Poiret One', cursive;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

/* ── FOOTER ── */
.footer {
    background-color: #203030;
    color: white;
    padding: 40px 0 20px;
    position: relative;
}



.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 30px;
}

.footer-logo img {
    width: 120px;
    height: auto;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ccc;
}

.footer-copy {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    padding: 0 20px;
}

.footer-address {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem 2rem;
        border-top: 1px solid #eee;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        gap: 1.2rem;
    }
    .nav-menu.active { display: flex; }
    .mv-grid { grid-template-columns: 1fr; gap: 2rem; }
    .values-grid { grid-template-columns: 1fr; }
    .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
    .nav-menu-item.dropdown:hover .dropdown-menu { display: block; }
}

/* ── ANIMACIÓN ENTRADA ── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}
