/* PEC CONSULTING V8 - BASED ON MUESTRA.JPG */

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('Tipografias/Fonts/WEB/fonts/CabinetGrotesk-Regular.woff2') format('woff2'),
       url('Tipografias/Fonts/WEB/fonts/CabinetGrotesk-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('Tipografias/Fonts/WEB/fonts/CabinetGrotesk-Medium.woff2') format('woff2'),
       url('Tipografias/Fonts/WEB/fonts/CabinetGrotesk-Medium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('Tipografias/Fonts/WEB/fonts/CabinetGrotesk-Bold.woff2') format('woff2'),
       url('Tipografias/Fonts/WEB/fonts/CabinetGrotesk-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('Tipografias/Fonts/WEB/fonts/CabinetGrotesk-Extrabold.woff2') format('woff2'),
       url('Tipografias/Fonts/WEB/fonts/CabinetGrotesk-Extrabold.woff') format('woff');
  font-weight: 800;
  font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - EXACT FROM MUESTRA */
    --bordeaux: #5A1220;
    --beige: #D9CDB5;
    --beige-dark: #726751;
    --dark: #000000;
    --white: #FFFFFF;
    --gold: #D4AF37;
    --text-dark: #333333;

    /* Typography */
    --font: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: #5A1220;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === HEADER === */
.header {
    background: var(--beige);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--bordeaux);
}

.btn-contacto {
    background: var(--beige);
    border: 2px solid var(--dark);
    padding: 0.6rem 1.5rem;
    border-radius: 0;
}

.btn-contacto:hover {
    background: var(--dark);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* === HERO === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: url('hero.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--dark);
}

/* === QUÉ HACEMOS === */
.que-hacemos {
    background: transparent;
    padding: 0;
    position: relative;
    margin-top: 0;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.que-hacemos h2 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--white);
    position: absolute;
    top: -4.5rem;
    left: 0;
    z-index: 10;
    letter-spacing: 0.02em;
    margin: 0;
    padding: 0 0 0 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 2;
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.card-content p {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.4;
    font-weight: 400;
}

/* === QUOTE SECTION === */
.quote-section {
    background: var(--bordeaux);
    padding: 3rem 0;
}

.container-quote {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.quote {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    text-align: center;
    line-height: 1.6;
    font-style: normal;
    margin: 0;
}

.quote strong {
    font-weight: 700;
}

/* === SPLIT SECTIONS === */
.servicios-split,
.herramientas-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.founder-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 550px;
}

.split-left,
.split-right {
    position: relative;
    display: flex;
    align-items: stretch;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

.servicios-split .split-left {
    background: var(--beige-dark);
}

.herramientas-split .split-right {
    background: #D9CDBF;
}

.split-left img,
.split-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.servicios-title-overlay {
    position: absolute;
    top: 60%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.servicios-title-overlay h2 {
    font-size: 8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 0.8;
    letter-spacing: 0.02em;
    margin: 0;
    text-align: left;
}

.beige-bg {
    background: var(--beige-dark) !important;
}

.beige-light-bg {
    background: #D9CDBF !important;
}

.bordeaux-bg {
    background: var(--bordeaux);
}

.split-content {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.services-list,
.tools-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.services-list li,
.tools-list li {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1.3rem;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 400;
    line-height: 1.4;
}

.services-list li::before,
.tools-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    top: -0.3rem;
    color: var(--white);
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 400;
}

/* Herramientas list - dark text on light background */
.beige-light-bg .tools-list li {
    color: var(--dark);
}

.beige-light-bg .tools-list li::before {
    color: var(--dark);
}

/* === HERRAMIENTAS === */
.herramientas-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}


.herramientas-overlay {
    position: absolute;
    top: 60%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.herramientas-overlay h2 {
    font-size: 8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 0.8;
    letter-spacing: 0.02em;
    margin: 0;
    text-align: left;
}

/* === ABOUT SECTION === */
.about-section {
    position: relative;
    padding: 8rem 0;
    background: url('revolucionamos.png') center/cover;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.about-text {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--white);
    text-align: center;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
}

/* === FOUNDER SECTION === */
.founder-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 550px;
}

.bordeaux-bg {
    background: url('pecbg.png') center/cover;
}

.bordeaux-bg .split-content {
    color: var(--white);
}

.founder-intro {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.founder-quote {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 3.5rem;
}

.founder-info {
    margin-bottom: 4rem;
}

.founder-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.founder-title {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

.logo-footer img {
    width: 220px;
    filter: brightness(0) invert(1);
}


/* === CONTACT SECTION === */
.contact-section {
    padding: 6rem 0;
    background: var(--beige);
}

.contact-section h2 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-grid input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--dark);
    background: var(--white);
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.form-grid input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--bordeaux);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 2rem;
}

.btn-submit {
    width: 100%;
    padding: 1.3rem;
    background: var(--bordeaux);
    color: var(--white);
    border: none;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-submit:hover {
    background: #7A1630;
    transform: translateY(-2px);
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === WHATSAPP BUTTON === */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--bordeaux);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s;
    border: 2px solid var(--gold);
}

.whatsapp-button:hover {
    transform: scale(1.1) translateY(-4px);
}

.whatsapp-button svg {
    width: 28px;
    height: 28px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: var(--dark);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s;
    font-weight: 500;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--dark);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .servicios-split,
    .herramientas-split,
    .founder-section {
        grid-template-columns: 1fr;
    }

    .split-left,
    .split-right {
        min-height: 400px;
    }

    .herramientas-split .split-left {
        order: 2;
    }

    .herramientas-split .split-right {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--beige);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .que-hacemos h2 {
        font-size: 2.5rem;
    }

    .quote {
        font-size: 1.3rem;
    }

    .split-content {
        padding: 3rem 2rem;
    }

    .split-content h2 {
        font-size: 2.5rem;
    }

    .servicios-title-overlay h2 {
        font-size: 4rem;
        left: 2rem;
    }

    .herramientas-overlay h2 {
        font-size: 4rem;
        right: 2rem;
    }

    .about-text {
        font-size: 1.2rem;
    }

    .services-list li,
    .tools-list li {
        font-size: 1.1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-section h2 {
        font-size: 2.5rem;
    }

    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-tooltip {
        display: none;
    }
}
