/* 
    Pixel Gafetes - Custom Styles
    Brand Color: #0DEB87 (Turquesa Medio)
*/

:root {
    --naranja: #F7700B;
    --verde-petroleo: #08676E;
    --turquesa: #089FA1;
    --celeste: #DDEBF4;
    --turquesa-soft: rgba(8, 159, 161, 0.1);
    --negro: #111111;
    --gris-carbon: #222222;
    --gris-suave: #F6F8FA;
    --blanco: #FFFFFF;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;

    /* Typography Fallbacks */
    --font-titles: "Montserrat", "Segoe UI", Arial, sans-serif;
    --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
}

/* @font-face placeholders - Dejar comentado para implementar archivos reales .woff2 
@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/montserrat-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/poppins-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--blanco);
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-titles);
    font-weight: 700;
    color: var(--verde-petroleo);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-titles);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--naranja);
    color: var(--blanco);
}

.btn-primary:hover {
    background-color: #e66600;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 112, 11, 0.4);
}

.btn-secondary {
    background-color: var(--verde-petroleo);
    color: var(--blanco);
}

.btn-secondary:hover {
    background-color: var(--turquesa);
    color: var(--blanco);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 103, 110, 0.4);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* Header Redesign */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--blanco);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background-color: var(--verde-petroleo);
    color: var(--blanco);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-info {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.top-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blanco);
    font-weight: 500;
    opacity: 0.9;
    transition: var(--transition);
}

.top-info a:hover {
    opacity: 1;
    color: var(--celeste);
}

.top-info svg {
    width: 16px;
    height: 16px;
}

.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Updated Nav */
nav ul {
    display: flex;
    gap: 35px;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--naranja);
}

/* Hero */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/img/hero-executives.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--blanco);
    position: relative;
    padding: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--blanco);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--naranja);
    font-weight: 600;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-images {
    position: relative;
    height: 400px;
}

.hero-img-1,
.hero-img-2 {
    position: absolute;
    border-radius: 10px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hero-img-1 {
    width: 250px;
    top: 0;
    left: 0;
    z-index: 2;
}

.hero-img-2 {
    width: 250px;
    bottom: 0;
    right: 50px;
    z-index: 1;
}

.hero-images div:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 3;
}

/* Features */
.bg-alt {
    background-color: var(--celeste);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--blanco);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--verde-petroleo);
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde-petroleo);
    background: var(--turquesa-soft);
    border-radius: 50%;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-content: center;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    background: var(--blanco);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 3/2;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #666;
}

.portfolio-info {
    padding: 15px;
    text-align: center;
}

/* WhatsApp Quote Section Update */
.contact-whatsapp-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.whatsapp-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.whatsapp-cta {
    display: flex;
    justify-content: center;
}

.cta-card {
    background: var(--blanco);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--celeste);
    text-align: center;
    position: relative;
    max-width: 450px;
}

.checkmark-icon {
    width: 60px;
    height: 60px;
    background-color: var(--naranja);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -80px auto 30px;
    box-shadow: 0 5px 15px rgba(247, 112, 11, 0.3);
}

.checkmark-icon svg {
    width: 30px;
    height: 30px;
}

.cta-card h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-card p {
    color: var(--gris-carbon);
    margin-bottom: 30px;
}

.whatsapp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #25D366;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.whatsapp-cta-btn:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta-btn svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

/* Removed contact info (merged into CTA) */

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 4px solid var(--verde-petroleo);
}

/* Responsive */
@media (max-width: 991px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-images {
        display: none;
    }

    .contact-whatsapp-layout {
        grid-template-columns: 1fr;
    }

    .cta-card {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}