/* ================================================
   ANGUS EXPRESS — estilos.css
   Paleta: pastel cálido (crema, durazno, terracota)
   ================================================ */

/* ── FUENTES ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── VARIABLES ── */
:root {
    --bg-page:      #fdf7f0;
    --bg-card:      #ffffff;
    --bg-section:   #fff8f2;
    --bg-stats:     #fdeee3;
    --borde:        #ead8c8;
    --borde-hover:  #d4a882;
    --accent:       #d4673a;
    --accent-soft:  #f0a07a;
    --accent-pale:  #fde4d3;
    --texto:        #2e1f14;
    --texto-muted:  #7a6357;
    --texto-light:  #b09485;
    --sombra-sm:    0 2px 8px rgba(100,50,20,.07);
    --sombra-md:    0 6px 24px rgba(100,50,20,.1);
    --sombra-lg:    0 12px 40px rgba(100,50,20,.13);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-page);
    color: var(--texto);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 70% 40% at 5% 0%, rgba(212,103,58,.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 95% 100%, rgba(240,160,122,.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ── HEADER ── */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(253,247,240,.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--borde);
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 64px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 3px;
    color: var(--texto);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    transition: opacity .2s;
}
.logo:hover { opacity: .8; }
.logo span { color: var(--accent); }

header nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }

header nav a {
    text-decoration: none;
    color: var(--texto-muted);
    font-size: .83rem;
    font-weight: 500;
    letter-spacing: .3px;
    padding: .45rem .9rem;
    border-radius: var(--r-sm);
    transition: color .2s, background .2s;
}
header nav a:hover  { color: var(--texto);  background: var(--accent-pale); }
header nav a.active { color: var(--accent); background: var(--accent-pale); font-weight: 600; }

/* ── HERO ── */
.hero {
    position: relative; z-index: 1;
    min-height: calc(100vh - 64px);
    display: grid; place-items: center;
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--accent-pale);
    border: 1px solid var(--accent-soft);
    color: var(--accent);
    font-size: .72rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    padding: .4rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
    animation: fadeDown .6s ease both;
}
.hero-badge::before { content: '🏍️'; font-size: .85rem; }

.hero h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: .95;
    letter-spacing: 2px;
    color: var(--texto);
    margin-bottom: 1.5rem;
    animation: fadeUp .7s ease .1s both;
}
.hero h2 em {
    font-style: normal;
    color: var(--accent);
}

.hero-desc {
    max-width: 560px; margin: 0 auto 3rem;
    color: var(--texto-muted);
    font-size: 1.05rem;
    animation: fadeUp .7s ease .2s both;
}

.hero-actions {
    display: flex; gap: 1rem;
    justify-content: center; flex-wrap: wrap;
    animation: fadeUp .7s ease .3s both;
}

/* ── BOTONES ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700; font-size: .9rem;
    text-decoration: none;
    padding: .85rem 2rem;
    border-radius: var(--r-sm);
    border: none; cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(212,103,58,.28);
}
.btn-primary:hover {
    background: #be5630;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212,103,58,.38);
}

.btn-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: transparent;
    color: var(--texto-muted);
    font-family: var(--font-body);
    font-weight: 500; font-size: .9rem;
    text-decoration: none;
    padding: .85rem 2rem;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--borde);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.btn-secondary:hover {
    border-color: var(--borde-hover);
    background: var(--accent-pale);
    color: var(--accent);
}

/* ── ETIQUETAS DE SECCIÓN ── */
.section-label {
    display: block;
    font-size: .72rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .85rem;
}

.gold-title, .section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 1px;
    color: var(--texto);
    line-height: 1.05;
}

/* ── CARDS GRID ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1.5px solid var(--borde);
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem;
    position: relative; overflow: hidden;
    box-shadow: var(--sombra-sm);
    transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-4px);
    box-shadow: var(--sombra-md);
}

.card-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

.card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; letter-spacing: 1px;
    color: var(--texto);
    margin-bottom: .6rem;
}
.card p { color: var(--texto-muted); font-size: .9rem; }

/* ── STATS ── */
.stats-bar {
    position: relative; z-index: 1;
    background: var(--bg-stats);
    border-top: 1.5px solid var(--borde);
    border-bottom: 1.5px solid var(--borde);
    padding: 3.5rem 2rem;
}
.stats-inner {
    max-width: 900px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem; text-align: center;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent);
    display: block; line-height: 1; margin-bottom: .4rem;
}
.stat-label {
    color: var(--texto-muted);
    font-size: .78rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
}

/* ── CTA ── */
.cta-section {
    position: relative; z-index: 1;
    padding: 5.5rem 2rem;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--texto);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.cta-section p { color: var(--texto-muted); margin-bottom: 2.5rem; }

/* ── PAGE SECTION (páginas internas) ── */
.page-section {
    position: relative; z-index: 1;
    flex: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    width: 100%;
}
.page-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: 1.5px;
    color: var(--texto);
    margin-bottom: 1rem;
}
.page-section > p {
    color: var(--texto-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

/* ── FORMULARIO ── */
.form-card {
    background: var(--bg-card);
    border: 1.5px solid var(--borde);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    box-shadow: var(--sombra-md);
}

.form-card label {
    display: block;
    font-size: .8rem; font-weight: 600;
    letter-spacing: .5px; text-transform: uppercase;
    color: var(--texto-muted);
    margin-bottom: .4rem;
    margin-top: 1.4rem;
}
.form-card label:first-of-type { margin-top: 0; }

.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    background: var(--bg-section);
    border: 1.5px solid var(--borde);
    border-radius: var(--r-sm);
    padding: .75rem 1rem;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--texto);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    margin-bottom: .25rem;
}
.form-card input:focus,
.form-card textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,103,58,.12);
    background: #fff;
}
.form-card textarea { resize: vertical; min-height: 110px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.solicitud-row:hover { background: var(--accent-pale); }

.success-msg {
    background: #edfaf3;
    border: 1.5px solid #7ecfa3;
    color: #1e6e45;
    border-radius: var(--r-sm);
    padding: 1rem 1.25rem;
    font-size: .92rem; font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: .5rem;
}
.success-msg::before { content: '✅'; font-size: 1.1rem; }

.error-msg {
    background: #fff2f2;
    border: 1.5px solid #e8a0a0;
    color: #8b2020;
    border-radius: var(--r-sm);
    padding: 1rem 1.25rem;
    font-size: .92rem; font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: .5rem;
}
.error-msg::before { content: '❌'; font-size: 1.1rem; }
.error-msg.visible { display: flex; }

/* ── FOOTER ── */
footer {
    position: relative; z-index: 1;
    background: var(--bg-stats);
    border-top: 1.5px solid var(--borde);
    padding: 2.5rem 2.5rem;
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem; letter-spacing: 3px;
    color: var(--texto-muted);
}
.admin-hidden {
    color: inherit; cursor: default;
}
footer > p { color: var(--texto-light); font-size: .8rem; }
footer nav { display: flex; gap: .1rem; }
footer nav a {
    text-decoration: none; color: var(--texto-muted);
    font-size: .82rem; font-weight: 500;
    padding: .4rem .75rem; border-radius: var(--r-sm);
    transition: color .2s, background .2s;
}
footer nav a:hover { color: var(--accent); background: var(--accent-pale); }

/* ── ANIMACIONES ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    header {
        flex-direction: column; height: auto;
        padding: 1rem 1.25rem; gap: .6rem;
    }
    header nav { justify-content: center; }

    .hero { padding: 3rem 1.5rem; min-height: auto; }
    .page-section { padding: 3rem 1.5rem; }

    .form-card { padding: 1.75rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; }

    footer { flex-direction: column; text-align: center; }
    footer nav { justify-content: center; }
}

/* ── FILE UPLOAD (cámara) ── */
.file-preview {
    display: none;
    margin: 6px 0 10px;
    border-radius: var(--r-sm);
    overflow: hidden;
    max-width: 260px;
    border: 2px solid var(--accent-pale);
}
.file-preview.show {
    display: block;
}
.file-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-sm);
}
.btn-camera {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}
.btn-camera:hover {
    background: var(--accent-soft);
}

/* ── PHOTOS en modales ── */
.photos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.photos > div {
    text-align: center;
    width: 100px;
}
.photo img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--borde);
    cursor: pointer;
    transition: transform .2s, border-color .2s;
}
.photo img:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}
.photo-expanded {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: pointer;
}
.photo-expanded img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
