@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700&family=Lexend:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-brown: #B57724;
    --primary-gradient: linear-gradient(56deg, #B57724 27.64%, #7F4500 75.61%);
    --secondary-dark: #232323;
    --bg-page: #F5F5F5;
    --text-primary: #000000;
    --text-white: #FFFFFF;
    --white: #FFFFFF;

    /* Typography */
    --font-main: 'Alexandria', sans-serif;
    --font-ui: 'Lexend', sans-serif;

    /* Spacing */
    --section-padding: 100px 20px;
    --container-width: 1660px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography Utility */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, top 0.4s ease;
}

header.header-hidden {
    opacity: 0;
    visibility: hidden;
}

header.header-scrolled {
    /* background: var(--white); */
    top: 0;
    width: 100%;
    padding: 10px 20px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
}

.logo svg {
    height: 74px;
    width: auto;
}

nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-brown);
}

.header-cta .btn {
    background: var(--primary-gradient);
    color: var(--text-white);
    width: 180px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.header-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(181, 119, 36, 0.4);
}

/* Hero Section */
.hero {
    padding: 180px 20px 100px;
    text-align: center;
    background: var(--bg-page);
    background-image: radial-gradient(50% 50% at 50% 50%, rgba(181, 119, 36, 0.08) 0%, rgba(245, 245, 245, 0) 100%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 40px;
    font-weight: 600;
    line-height: 49px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.hero .main-title {
    font-size: 66px;
    font-weight: 600;
    line-height: 80px;
    margin-bottom: 40px;
    color: var(--text-primary);
    display: block;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    width: 260px;
    height: 70px;
    border-radius: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
    width: 260px;
    height: 70px;
    border-radius: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(181, 119, 36, 0.3);
    transform: translateY(-3px);
}

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

.hero-image img,
.hero-image svg {
    max-width: 812px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.stack-section {
    /* position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; */
}

/* home section */
.home-section {
    /* padding-top: 160px; */
}

/* Optimization Section */
.optimization {
    background-color: var(--white);
    margin-top: -20%;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    text-align: left;
    padding: 40px;
    border-radius: 15px;
    background: #F9F9F9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card.highlighted {
    background: var(--primary-gradient);
    color: var(--white);
}

.benefit-card.highlighted h3,
.benefit-card.highlighted p {
    color: var(--white) !important;
}

.benefit-card-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-card-content .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brown);
    margin-top: 2px;
}

.benefit-card.highlighted .icon {
    color: var(--white);
}

.benefit-card-content .icon svg {
    width: 28px;
    height: 28px;
}

.benefit-card-content .text h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: var(--primary-brown);
    font-family: var(--font-main);
}

.benefit-card-content .text p {
    margin: 0;
    color: var(--secondary-dark);
    font-family: var(--font-ui);
    line-height: 1.6;
}

/* Monitoring Section */
.monitoring {
    background-color: var(--white);
    padding: var(--section-padding);
}

.monitoring-header {
    margin-bottom: 60px;
}

.monitoring-header .section-title {
    color: var(--primary-brown);
    margin-bottom: 10px;
}

.monitoring-subtitle {
    font-family: var(--font-ui);
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.monitoring-content {
    flex: 1;
}

.monitoring-image {
    flex: 1;
}

.monitoring-image img {
    width: 100%;
}

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

.control-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.control-item {
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 20px;
}

.control-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.control-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.control-icon {
    background-color: var(--secondary-dark);
    color: white;
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.control-icon svg {
    width: 24px;
    height: 24px;
}

.control-item-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--secondary-dark);
    font-family: var(--font-main);
}

.control-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    padding-left: 63px;
    font-family: var(--font-ui);
}

.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Monitoreo Operativo Section */
.monitoreo-operativo {
    background: radial-gradient(circle at center 30%, #3a3a3a 0%, var(--secondary-dark) 70%);
    padding: 100px 20px 0 20px;
    overflow: hidden;
}

.monitoreo-operativo .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monitoreo-icon {
    background: var(--primary-gradient);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.text-white {
    color: var(--white) !important;
}

.monitoreo-operativo .section-title {
    margin-bottom: 20px;
}

.monitoreo-operativo .monitoreo-subtitle {
    color: #E5E5E5;
    font-size: 1.2rem;
    font-family: var(--font-ui);
    /*max-width: 700px;*/
    margin: 0 auto 50px auto;
}

.monitoreo-mockup {
    width: 100%;
    /*max-width: 1000px;*
    margin: 0 auto;
    margin-bottom: -10px;
    /* Let it cut off slightly at bottom if needed */
}

.monitoreo-mockup img {
    width: 100%;
    display: block;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured-solid {
    background: #A6752A;
    /* Primary brown */
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card.card-outline {
    border: 2px solid #A6752A;
}

.pricing-header {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 25px;
}

.pricing-card.featured-solid .pricing-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing-header h3 {
    font-size: 2.2rem;
    font-family: var(--font-main);
    margin-bottom: 5px;
}

.text-brown {
    color: #A6752A;
}

.text-white {
    color: var(--white);
}

.pricing-subtitle {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    margin-bottom: 20px;
}

.price-container {
    margin-bottom: 5px;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-main);
    line-height: 1;
}

.pricing-period {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
}

.pricing-action {
    margin-bottom: 30px;
    text-align: center;
}

.action-top-margin {
    margin-top: 20px;
}

.btn-outline-brown {
    display: block;
    padding: 12px 20px;
    border: 2px solid #A6752A;
    border-radius: 30px;
    color: #A6752A;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-ui);
    transition: all 0.3s;
}

.btn-outline-brown:hover {
    background: #A6752A;
    color: var(--white);
}

.btn-solid-black {
    display: block;
    padding: 12px 20px;
    background: #232323;
    border-radius: 30px;
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-ui);
    transition: background 0.3s;
}

.btn-solid-black:hover {
    background: #000;
}

.btn-outline-black {
    display: block;
    padding: 12px 20px;
    border: 2px solid #232323;
    border-radius: 30px;
    color: #232323;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-ui);
    transition: all 0.3s;
}

.btn-outline-black:hover {
    background: #232323;
    color: var(--white);
}

.pricing-desc {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.plan-label {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.check-icon {
    flex-shrink: 0;
    color: #55B446;
}

.check-icon.light {
    color: #7ED957;
}

/* Testimonios Section */
.testimonials {
    background-color: var(--bg-page);
    padding: 100px 20px 200px 20px;
    position: relative;
    overflow: hidden;
}

.testimonials-header {
    margin-bottom: 50px;
}

.testimonials-header .section-title {
    color: var(--secondary-dark);
}

.testimonials-subtitle {
    color: var(--secondary-dark);
    font-size: 1.2rem;
    font-family: var(--font-ui);
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.testimonial-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border: 1px solid rgba(181, 119, 36, 0.4);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.testimonial-card .stars {
    color: #FFB800;
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: var(--secondary-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: var(--font-ui);
}

.testimonial-author {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 15px;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--secondary-dark);
}

.author-company {
    font-size: 0.85rem;
    text-align: right;
    line-height: 1.2;
}

.author-company img {
    height: 3rem;
}

.text-red {
    color: #E23636;
}

.text-blue {
    color: #1A365D;
}

.text-xs {
    font-size: 0.75rem;
}

.testimonial-phone {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    z-index: 3;
}

.testimonial-phone img {
    width: 100%;
    display: block;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--white);
    padding: 120px 20px 40px;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    /* Below the phone */
}

.huge-text {
    font-size: 8vw;
    line-height: 1;
    font-family: var(--font-main);
    margin: 0;
    white-space: nowrap;
    text-transform: uppercase;
    transform: scaleY(1.3);
    /* Make it tall as in design */
    display: inline-block;
}

.huge-text span {
    color: var(--secondary-dark);
}

.huge-text .text-brown {
    color: var(--primary-brown);
}

/* Footer Section */
.site-footer {
    background-color: #8E5616;
    /* Brown matching the screenshot */
    color: var(--white);
    padding: 80px 20px 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
}

.brand-col {
    max-width: 400px;
}

.footer-logo-img {
    max-width: 250px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    /* Ensure it's white */
}

.brand-description {
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
}

.footer-title {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 15px;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.contact-info p {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

.separator {
    color: var(--white);
    font-size: 1.2rem;
}

/* ==============================
   Mobile Menu (Hamburger + Drawer)
   ============================== */

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(181, 119, 36, 0.08);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--secondary-dark);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animated to X when open */
.hamburger.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1010;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-overlay.is-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Drawer Panel */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--white);
    z-index: 1020;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 0 0 40px;
    overflow-y: auto;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

/* Drawer top bar */
.mobile-drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 20px 10px;
}

.drawer-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--secondary-dark);
    transition: background 0.2s;
}

.drawer-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Nav links in drawer */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-links li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-links a {
    display: block;
    padding: 18px 28px;
    color: var(--secondary-dark);
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
    color: var(--primary-brown);
    background: rgba(181, 119, 36, 0.08);
    padding-left: 36px;
}

/* CTA button at bottom of drawer */
.mobile-drawer-cta {
    padding: 20px 0px 0;
    width: 200px;
}

.mobile-drawer-cta .btn-primary {
    width: 100%;
    height: 64px;
    font-size: 1.2rem;
    border-radius: 40px;
}

/* tawk */
.tawk-custom-color {
    background-color: var(--primary-brown) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 60px;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero .main-title {
        font-size: 2.4rem;
        line-height: 1.15;
        margin-bottom: 24px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-bottom: 40px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        height: 56px;
        font-size: 1rem;
    }

    header {
        width: 100%;
        top: 0;
        background: var(--white);
        padding: 10px 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    header.header-scrolled {
        background: var(--white);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    header.header-hidden {
        opacity: 0;
        visibility: hidden;
        transform: none;
    }

    nav {
        border-radius: 60px 0 0 60px;
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .flex-wrapper {
        flex-direction: column;
    }

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

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

    .pricing {
        padding: 0px;
    }

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

    .pricing-card {
        margin-bottom: 20px;
    }

    .testimonial-phone {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 300px;
        margin: 40px auto 0 auto;
    }

    .testimonials {
        padding-bottom: 0px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .huge-text {
        font-size: 12vw;
    }

    .footer-bottom {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Show overlay when active */
    .mobile-overlay.is-open {
        display: block;
    }
}