/*
Theme Name: Veta - Editorial Style
Theme URI: https://somosveta.com
Author: Lucía Cuadrado
Author URI: https://somosveta.com
Description: Plantilla corporativa optimizada a medida para Veta.
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veta-theme
*/

/* ==========================================================================
   1. FUENTES
   ========================================================================== */
@font-face {
    font-family: 'Pixelify Sans';
    src: url('fonts/PixelifySans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pixelify Sans';
    src: url('fonts/PixelifySans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. VARIABLES Y RESET
   ========================================================================== */
:root {
    --mantequilla: #FFEDAC;
    --cedro: #102321;
    --veta: #E8BC58;
    --area: #E1DED9;
    --pergamino: #F5F4EF;
    --ceniza: #9F9F9F;
    --font-main: 'Poppins', sans-serif;
    --font-accent: 'Pixelify Sans', sans-serif;
}

body {
    background-color: var(--pergamino);
    color: var(--cedro);
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ==========================================================================
   3. TIPOGRAFÍAS Y UTILIDADES CONTENEDORAS
   ========================================================================== */
.text-key-phrase-italic {
    font-family: var(--font-main);
    font-weight: 400;
    font-style: italic;
}

.text-heading-semibold {
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-body-regular {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
}

.veta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.text-center {
    text-align: center;
}

/* Layouts Base Grid */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.grid-2-cols-editorial {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 5rem;
    align-items: center;
}

/* ==========================================================================
   4. COMPONENTES GLOBALES (Botones, Badges, Formularios)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-veta-cedro {
    background-color: var(--cedro);
    color: var(--pergamino) !important;
}

.btn-veta-cedro:hover {
    background-color: transparent;
    color: var(--cedro) !important;
    border-color: var(--cedro);
}

.btn-veta-veta {
    background-color: var(--veta);
    color: var(--cedro) !important;
}

.btn-veta-veta:hover {
    background-color: var(--pergamino);
}

.btn-veta-outline {
    background-color: transparent;
    color: var(--cedro);
    border-color: var(--ceniza);
}

.btn-veta-outline:hover {
    border-color: var(--cedro);
}

/* Badges */
.veta-pixel-badge {
    font-family: var(--font-accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4em 1em;
    border-radius: 2em;
    line-height: 1;
    vertical-align: middle;
}

.badge-veta-gold {
    background-color: var(--veta);
    color: var(--pergamino);
}

.badge-veta-butter {
    background-color: var(--mantequilla);
    color: var(--cedro);
}

.badge-veta-cedar {
    background-color: var(--cedro);
    color: var(--pergamino);
}

.veta-pixel-badge.has-star {
    position: relative;
}

.veta-pixel-badge.has-star::after {
    content: "✱";
    position: absolute;
    right: -2.8rem;
    color: var(--mantequilla);
    pointer-events: none;
}

/* Formulario */
.veta-editorial-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.form-row-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-row-inline input {
    flex: 1;
}

.veta-editorial-form input,
.veta-editorial-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--cedro);
    padding: 0.8rem 0;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--cedro);
}

.veta-editorial-form input:focus,
.veta-editorial-form textarea:focus {
    outline: none;
    border-bottom-width: 2px;
}

.form-dot {
    color: var(--veta);
    font-weight: bold;
    font-size: 1.5rem;
}

/* ==========================================================================
   5. SECCIONES (Orden de flujo HTML)
   ========================================================================== */

/* Header */
.veta-header {
    width: 100%;
    background-color: var(--pergamino);
}

.veta-header .header-flex {
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

.veta-header .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.veta-header .nav-menu a {
    text-decoration: none;
    color: var(--cedro);
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.veta-header .separator {
    color: var(--ceniza);
    user-select: none;
}

/* Botón hamburguesa (oculto en escritorio, se muestra en móvil) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--cedro);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-cta-mobile {
    display: none;
}

/* Hero */
.veta-hero {
    background-color: var(--mantequilla);
    padding: 5rem 0;
}

.veta-hero .veta-pixel-badge {
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
}

.hero-title {
    font-size: 4rem;
    color: var(--cedro);
    margin: 1rem 0 2rem;
    line-height: 1.1;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    color: rgba(16, 35, 33, 0.83);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Marquee */
.veta-marquee {
    background-color: var(--cedro);
    overflow: hidden;
    padding: 1.5rem 0;
    white-space: nowrap;
    border-top: 1px solid var(--veta);
    border-bottom: 1px solid var(--veta);
}

.marquee-content {
    display: inline-block;
}

.marquee-item {
    color: var(--mantequilla);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-right: 2rem;
    overflow: clip;
}

.marquee-track {
    display: flex;
    padding-left: 4rem;
    gap: 4rem;
    width: max-content;
    animation: marquee-move-text 20s linear infinite forwards;
}

@keyframes marquee-move-text {
    to {
        transform: translateX(-50%);
    }
}

/* Historia */
.veta-story-section {
    background-color: var(--pergamino);
    border-bottom: 1px solid var(--area);
}

.story-sticky-title {
    position: sticky;
    top: 4rem;
}

.story-sticky-title .veta-pixel-badge {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story-sticky-title h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-top: 0.5rem;
}

.story-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.story-cta {
    display: inline-block;
    color: var(--cedro);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--cedro);
    padding-bottom: 0.3rem;
}

/* Servicios */
.veta-services-section {
    background-color: var(--area);
    border-bottom: 1px solid rgba(16, 35, 33, 0.1);
}

.veta-services-section .section-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.services-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(16, 35, 33, 0.15);
}

.service-card-premium {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.4s ease;
}

.services-grid-2x2>.service-card-premium:nth-child(odd) {
    border-right: 1px solid rgba(16, 35, 33, 0.15);
}

.services-grid-2x2>.service-card-premium:nth-child(1),
.services-grid-2x2>.service-card-premium:nth-child(2) {
    border-bottom: 1px solid rgba(16, 35, 33, 0.15);
}

.services-grid-2x2>.service-card-premium:nth-child(3),
.services-grid-2x2>.service-card-premium:nth-child(4) {
    border-bottom: 1px solid rgba(16, 35, 33, 0.15);
}

.service-card-premium:hover {
    background-color: var(--pergamino);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-number {
    font-size: 3rem;
    line-height: 0.8;
    color: var(--veta);
    user-select: none;
    min-width: 50px;
}

.service-card-header h3 {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.1;
}

.service-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.service-card-body p {
    margin: 0 0 2rem 0;
    font-size: 1.15rem;
    max-width: 480px;
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.service-tags .veta-pixel-badge {
    font-size: 0.85rem;
}

/* Mentorías */
.veta-mentorias-section {
    background-color: var(--cedro);
    color: var(--pergamino);
}

.veta-mentorias-section .veta-pixel-badge {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.veta-mentorias-section h2 {
    font-size: 2.8rem;
    color: var(--mantequilla);
    line-height: 1.2;
}

.veta-mentorias-section p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(245, 244, 239, 0.85);
}

/* Sobre Mí */
.veta-about-section {
    background-color: var(--pergamino);
}

.veta-about-section .section-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.veta-about-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.editorial-image-placeholder {
    width: 100%;
    padding-top: 125%;
    background-color: var(--area);
    position: relative;
    border: 1px solid var(--ceniza);
}

.editorial-image-placeholder span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--ceniza);
}

/* Contacto */
.veta-contact-section {
    background-color: var(--mantequilla);
    padding: 4rem 1.5rem;
}

.veta-contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.veta-contact-section h2 {
    font-size: 3rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
}

.veta-contact-section .text-key-phrase-italic {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(16, 35, 33, 0.7);
}



/* Footer */
.veta-footer {
    background-color: var(--pergamino);
    border-top: 1px solid var(--area);
}

.veta-footer .footer-flex {
    padding: 3rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.veta-footer a {
    color: var(--cedro);
    text-decoration: none;
}

.footer-legal-row {
    border-top: 1px solid var(--area);
    padding: 1.2rem 0;
    display: flex;
    justify-content: center;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-legal-link {
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--ceniza) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--cedro) !important;
    text-decoration: underline;
}

.footer-legal-separator {
    color: var(--ceniza);
    font-size: 0.8rem;
    user-select: none;
}

/* ==========================================================================
   6. RESPONSIVO
   ========================================================================== */
@media (max-width: 992px) {
    .services-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .services-grid-2x2>.service-card-premium:nth-child(odd) {
        border-right: none;
    }

    .services-grid-2x2>.service-card-premium {
        border-bottom: 1px solid rgba(16, 35, 33, 0.15) !important;
    }

    .service-card-premium {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 768px) {

    .grid-2-cols,
    .grid-2-cols-editorial {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .veta-container {
        padding: 4rem 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .story-sticky-title {
        position: static;
    }

    /* --- Header / Navegación móvil --- */
    .veta-header .header-flex {
        position: relative;
        padding: 1rem 1.5rem;
    }

    .hamburger-btn {
        display: flex;
    }

    .veta-header .header-cta {
        display: none;
    }

    .header-navigation {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(80%, 320px);
        background-color: var(--pergamino);
        box-shadow: -4px 0 20px rgba(16, 35, 33, 0.15);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }

    .header-navigation.is-open {
        transform: translateX(0);
    }

    .veta-header .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.8rem;
    }

    .veta-header .nav-menu a {
        font-size: 1.2rem;
    }

    .veta-header .separator {
        display: none;
    }

    .header-cta-mobile {
        display: block;
        margin-top: 2.5rem;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* --- Botones: mismo ancho y margen que el resto del contenido --- */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn,
    .header-cta-mobile .btn,
    .mentorias-content .btn,
    .veta-contact-action .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .veta-services-section .section-title,
    .veta-about-section .section-title {
        font-size: 2.4rem;
    }

    .story-sticky-title h2,
    .veta-mentorias-section h2 {
        font-size: 2rem;
    }

    .veta-contact-section h2 {
        font-size: 2.2rem;
    }

    .veta-footer .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}