/* ==========================================================================
   DISEÑO Y DESARROLLO WEB: SIGNES.STUDIO
   Sitio corporativo: https://signes.studio
   ========================================================================== */


/* --- Variables --- */
:root {
    --bg:        #faf9f6;
    --bg-alt:    #f2efe9;
    --text:      #1e1e1e;
    --text-soft: #6b6b6b;
    --accent:    #b19151;
    --accent-dk: #8a6f3a;
    --white:     #ffffff;
    --border:    #e0dbd3;

    --ff-display: 'Playfair Display', Georgia, serif;
    --ff-body:    'DM Sans', system-ui, sans-serif;

    --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition: 0.5s var(--ease);

    --max-w: 1100px;
    --pad-x: clamp(20px, 5vw, 60px);
}

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

html { 
    scroll-behavior: smooth; 
    height: auto;
    overflow-y: auto; 
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Utilidades --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px var(--pad-x);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* Forzamos la ruta exacta desde la navbar para ganarle a cualquier otra regla */
.navbar .logo a,
.navbar .logo a:link,
.navbar .logo a:visited {
    font-family: var(--ff-display) !important; /* Asegura la tipografía serif */
    font-size: 1.35rem !important;            /* Fuerza el tamaño más grande */
    font-weight: 600 !important;              /* Fuerza la negrita */
    letter-spacing: 0.01em;
    color: var(--accent) !important;          /* Fuerza el color bronce */
    text-decoration: none;
    transition: color 0.3s ease;
}

/* El efecto al pasar el cursor */
.navbar .logo a:hover {
    color: var(--accent-dk) !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

.nav-btn {
    background: var(--text) !important;
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.78rem !important;
    letter-spacing: 0.1em;
    transition: background 0.3s !important;
}

.nav-btn:hover {
    background: var(--accent) !important;
    color: var(--white) !important;
}

/* Hamburguesa móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: var(--transition);
}

/* ============================================
   HERO & ESTRUCTURA ADAPTATIVA DE LA HOME
   ============================================ */
.fullscreen-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    justify-content: space-between;
}

.main-index {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4vh 0;
}

.hero {
    text-align: center;
    margin-top: 0;
    padding: 1vh var(--pad-x) 0;
}

.hero h1 {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4.5vh, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 4px;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero .job-title {
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
    display: inline-block;
}

.hero .lead {
    font-size: clamp(0.95rem, 1.8vh, 1.1rem);
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   GRID DE CARDS (PROPORCIÓN REFORZADA 3:4)
   ============================================ */
.cards-section {
    width: 100%;
    padding: 0 4vw;
}

.grid-containerwide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.card {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-alt);
    display: block;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.88) saturate(0.85);
    transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.card:hover img {
    transform: scale(1.04);
    filter: brightness(0.78) saturate(0.9);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
    pointer-events: none;
}

.card-body {
    position: absolute;
    bottom: 28px;
    left: 28px;
    z-index: 2;
    color: var(--white);
}

.card-label {
    font-family: var(--ff-body);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
    display: block;
}

.card-title {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 400;
    display: block;
}

/* ============================================
   CTA FINAL (ELEGANTE Y SUTIL)
   ============================================ */
.cta-final-section {
    padding: 0;
    text-align: center;
}

.cta-final-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-text-elegant {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: clamp(0.95rem, 1.5vh, 1.15rem); /* ◄ Valores reducidos a mano */
    color: var(--text-soft);
    letter-spacing: 0.03em; /* Un pelín más de espacio entre letras para mejorar la lectura al ser pequeño */
}

/* ============================================
   SECCIÓN "CÓMO FUNCIONA" (PASOS AL 50% SUAVE)
   ============================================ */
.process-section {
    width: 100%;
    padding: 0 4vw;
    background: transparent;
    margin-bottom: 3vh;
}

.process-inner {
    border-top: none;
    padding-top: 1vh;
    background: transparent;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    background: rgba(242, 239, 233, 0.5);
    border: 1px solid rgba(224, 219, 211, 0.25);
    border-radius: 6px;
    padding: 22px 26px;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.step:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.step-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.step-num {
    font-family: var(--ff-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.step h3 {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
}

.step p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-soft);
}

/* ============================================
   SOBRE MÍ & ENFOQUE (PROPORCIÓN REFORZADA 3:4)
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 7vw, 90px);
    align-items: center;
    padding: clamp(60px, 8vw, 100px) 0;
}

.about-image-ratio {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 6px;
}

.about-image-ratio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h1 {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 6px;
    text-align: left;
}

.about-text .subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 24px;
    font-style: normal;
    font-family: var(--ff-body);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.8;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.credential {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.credential::before {
    content: '—';
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================
   SERVICIOS (PROPORCIÓN REFORZADA 3:4)
   ============================================ */
.services-hero {
    padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
    text-align: center;
}

.services-hero h1 {
    font-family: var(--ff-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    margin-bottom: 16px;
}

.services-hero p {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 480px;
    margin: 0 auto;
}

.service-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 7vw, 90px);
    align-items: center;
    padding: clamp(60px, 7vw, 90px) 0;
    border-top: 1px solid var(--border);
}

.service-section.reverse .service-image { order: -1; }

.service-image-ratio {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 6px;
}

.service-image-ratio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content h2 {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 16px;
}

.service-content > p {
    font-size: 0.97rem;
    color: var(--text-soft);
    margin-bottom: 28px;
    line-height: 1.8;
}

.service-content h3 {
    font-family: var(--ff-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.service-content ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.service-content ul li {
    font-size: 0.92rem;
    color: var(--text-soft);
    padding-left: 20px;
    position: relative;
}

.service-content ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.price-tag {
    display: inline-flex;
    flex-direction: column;
    background: var(--bg-alt);
    padding: 18px 24px;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-bottom: 28px;
}

.price-tag .amount {
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
}

.price-tag .duration {
    font-family: var(--ff-body);
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-top: 4px;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-intro {
    padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
    text-align: center;
}

.contact-intro h1 {
    font-family: var(--ff-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    margin-bottom: 16px;
}

.contact-intro p {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 460px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(40px, 7vw, 80px);
    padding-bottom: clamp(60px, 8vw, 100px);
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.contact-info h2 {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.contact-info > p {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 40px;
    line-height: 1.8;
}

.info-block {
    margin-bottom: 28px;
}

.info-block h3 {
    font-family: var(--ff-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.info-block p, .info-block a {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.8;
}

.info-block a:hover { color: var(--accent); }

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.social-link {
    font-family: var(--ff-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 999px;
    transition: border-color 0.3s, color 0.3s;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--ff-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(177,145,81,0.12);
}

.contact-form textarea { resize: vertical; min-height: 140px; }

/* ============================================
   REDISEÑO DE FOOTER EN 3 COLUMNAS SOLIDAS
   ============================================ */
.footer-fixed-bottom {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 40px var(--pad-x);
    width: 100%;
    margin-top: auto;
}

.footer-content-three-cols {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col-left { align-items: flex-start; }
.footer-col-center { align-items: center; }
.footer-col-right { align-items: flex-end; text-align: right; }

.footer-col-left a {
    font-family: var(--ff-body);
    font-size: 0.85rem;
    color: var(--text);
    transition: color 0.3s;
}
.footer-col-left a:hover { color: var(--accent); }

.footer-social-links {
    display: flex;
    gap: 20px;
}

.footer-social-links a {
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    transition: color 0.3s;
}
.footer-social-links a:hover { color: var(--accent); }

.footer-col-right p {
    font-family: var(--ff-body);
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.4;
}
.footer-col-right .col-name {
    font-family: var(--ff-display);
    color: var(--text);
    font-size: 0.95rem;
}
.footer-col-right .col-num {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.footer-bottom-copy {
    max-width: var(--max-w);
    margin: 32px auto 0;
    text-align: center;
}

.footer-bottom-copy p {
    font-size: 0.75rem;
    color: var(--text-soft);
    opacity: 0.6;
}

/* ============================================
   RESPONSIVE / MEDIA QUERIES GENERALES
   ============================================ */
@media (max-width: 900px) {
    .grid-containerwide,
    .process-steps,
    .footer-content-three-cols {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .service-section,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-section.reverse .service-image-ratio { order: 0; }

    .card {
        max-width: 380px;
        margin: 0 auto;
        aspect-ratio: 3 / 4;
    }

    .step {
        padding: 20px;
        text-align: center;
    }

    .step-header {
        justify-content: center;
    }

    .footer-col-left, .footer-col-center, .footer-col-right {
        align-items: center;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        top: 65px;
        background: var(--bg);
        padding: 40px var(--pad-x);
        gap: 28px;
        z-index: 99;
        border-top: 1px solid var(--border);
    }

    .nav-links.open a { font-size: 1.1rem; }
    .nav-links.open .nav-btn { text-align: center; width: max-content; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
/* ============================================
   BOTONES PRINCIPALES (Formato Globo Restaurado)
   ============================================ */
.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 12px 32px;          /* Espaciado interno generoso */
    border-radius: 999px;        /* Esto fuerza la forma de globo / píldora */
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-dk);
    transform: translateY(-1px);
    color: var(--white);
}
/* ============================================
   ETIQUETAS DE CABECERA (Bronce y Mayúsculas)
   ============================================ */
.section-label {
    font-family: var(--ff-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;     /* Da un espaciado elegante entre letras */
    text-transform: uppercase;   /* Fuerza las mayúsculas automáticamente sin tocar el HTML */
    color: var(--accent);       /* El color marroncito/bronce de la paleta */
    margin-bottom: 12px;
    display: inline-block;       /* Asegura que respete los márgenes correctos */
}
