/* ============================================================
   ADMINISTRACIÓN NAKEN — Hoja de estilos principal
   Paleta: navy profundo + dorado (identidad ya existente de la marca)
   Tipografía: Playfair Display (display/serif) + Inter (texto)
   ============================================================ */

:root {
    --primary: #0f1e2e;
    --primary-light: #1a2f45;
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --gray-100: #f8f7f5;
    --gray-200: #e8e5e0;
    --gray-600: #6b6a68;
    --gray-800: #2d2c2a;
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(15, 30, 46, 0.08);
    --shadow-hover: 0 20px 50px rgba(15, 30, 46, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1180px;
    --transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--gray-800);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }

p { max-width: 68ch; }

.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--gray-100);
}

.eyebrow {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
}

.section-intro {
    max-width: 640px;
    margin-bottom: 44px;
}

.section-intro p {
    color: var(--gray-600);
    font-size: 1.08rem;
}

/* ---------- Focus visibility (accesibilidad) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    min-height: 44px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-gold {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background: #1eb857;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper img {
    height: 46px;
    width: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.68rem;
    color: var(--gray-600);
    letter-spacing: 0.3px;
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

nav.main-nav a {
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
    color: var(--primary);
    background: var(--gray-100);
}

nav.main-nav .btn {
    margin-left: 8px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15,30,46,0.94) 0%, rgba(15,30,46,0.72) 45%, rgba(15,30,46,0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 60px 24px;
}

.hero-rpa {
    display: inline-block;
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(232, 213, 163, 0.4);
    border-radius: 30px;
    padding: 6px 16px;
    margin-bottom: 22px;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 18px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    margin-bottom: 34px;
    max-width: 52ch;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   PROPUESTA DE VALOR
   ============================================================ */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 12px;
}

.value-item {
    padding-left: 18px;
    border-left: 3px solid var(--gold);
}

.value-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.value-item p {
    color: var(--gray-600);
    font-size: 0.96rem;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.service-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.service-card h3 { font-size: 1.1rem; }

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.service-card a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

/* ============================================================
   CAMBIAR DE ADMINISTRADOR (banda destacada)
   ============================================================ */
.change-admin {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 56px 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.change-admin-text { max-width: 560px; }

.change-admin h2 { color: var(--white); }

.change-admin p {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
}

/* ============================================================
   EXPERIENCIA
   ============================================================ */
.experience-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.experience-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.experience-item i {
    color: var(--gold);
    font-size: 1.15rem;
    margin-top: 3px;
}

.experience-item p {
    color: var(--gray-800);
    font-size: 0.97rem;
    margin: 0;
}

/* ============================================================
   PROCESO (pasos)
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 44px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--gold-light);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 { font-size: 1.02rem; }
.step p { color: var(--gray-600); font-size: 0.92rem; }

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq-list {
    max-width: 760px;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.faq-question .icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--gold);
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    color: var(--gray-600);
    padding-bottom: 20px;
    font-size: 0.97rem;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 96px 24px;
}

.cta-final h2 { color: var(--white); }

.cta-final p {
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin: 0 auto 30px;
    font-size: 1.08rem;
}

.cta-final-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--gray-800);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.footer-grid ul li { margin-bottom: 8px; }

.footer-grid a {
    color: rgba(255,255,255,0.7);
    font-size: 0.93rem;
}

.footer-grid a:hover { color: var(--gold-light); }

.footer-brand {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   FORMULARIO DE CONTACTO
   ============================================================ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--primary);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.97rem;
    background: var(--white);
    color: var(--gray-800);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-field .error-msg {
    color: #b3261e;
    font-size: 0.82rem;
    margin-top: 4px;
    display: none;
}

.form-field.invalid input,
.form-field.invalid textarea,
.form-field.invalid select {
    border-color: #b3261e;
}

.form-field.invalid .error-msg { display: block; }

.form-success {
    display: none;
    background: #e6f4ea;
    border: 1px solid #34a853;
    color: #1e7e34;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.form-success.show { display: block; }

/* ============================================================
   PÁGINAS INTERNAS (breadcrumbs, hero simple)
   ============================================================ */
.page-hero {
    background: var(--gray-100);
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 14px;
}

.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--primary); }

.page-hero h1 { font-size: 2.3rem; margin-bottom: 8px; }

.page-hero p { color: var(--gray-600); font-size: 1.05rem; }

/* ============================================================
   Botón flotante WhatsApp
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #25d366;
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 900;
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.08); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 860px) {
    nav.main-nav {
        position: fixed;
        top: 73px;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 24px 24px;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    nav.main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    nav.main-nav a { padding: 12px 8px; }
    nav.main-nav .btn { margin: 10px 0 0; width: 100%; }

    .hamburger { display: flex; }

    .hero { min-height: auto; padding: 40px 0; }
    .hero h1 { font-size: 2.1rem; }
    .hero-content { padding: 40px 20px; }

    .change-admin { flex-direction: column; align-items: flex-start; text-align: left; padding: 36px 26px; }

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

    .section { padding: 60px 0; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero h1 { font-size: 1.85rem; }
    .cta-final { padding: 64px 20px; }
}
