:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #6b8e23;
    /* Olive Green */
    --secondary-text: #cccccc;
    --card-bg: #2a2a2a;
    --footer-bg: #4a6b22;
    /* Green from image */
    --font-main: 'Lato', sans-serif;
    --sidebar-width: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
}

/* Scroller Container */
.scroller {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Generic Section */
.section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-left: var(--sidebar-width);
    gap: 4rem;
}

.column-layout {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
}

.centered {
    align-items: center;
    text-align: center;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(107, 142, 35, 0.6));
}

.header-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(107, 142, 35, 0.6));
}

.btn-contact {
    text-decoration: none;
    color: var(--bg-color);
    background-color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-contact:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 142, 35, 0.4);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    gap: 3rem;
}

.sidebar-logo {
    width: 60px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
}

.sidebar-logo img:hover {
    transform: scale(1.1);
}

.sidebar-brand {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.sidebar-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.4rem;
    color: var(--accent-color);
    text-shadow: 0 2px 10px rgba(107, 142, 35, 0.5);
    transition: all 0.3s ease;
}

.sidebar-text:hover {
    color: #fff;
    text-shadow: 0 2px 15px rgba(107, 142, 35, 0.8);
    transform: scale(1.05);
}

.nav-dots {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Typography & Common */
h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-text);
    font-weight: 300;
}

.section-header {
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Hero Section */
.hero-section {
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('../images/Home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
        rgba(26, 26, 26, 1) 0%,
        rgba(26, 26, 26, 0.95) 10%,
        rgba(26, 26, 26, 0.7) 30%,
        rgba(26, 26, 26, 0.3) 60%,
        rgba(26, 26, 26, 0) 100%);
    z-index: 2;
}

.hero-section .container {
    flex: 1;
    padding-top: 5rem;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 55%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    text-align: left;
    /* padding-right: 2rem; */
}

.hero-image {
    display: none;
}

/* Hero Stats Section */
.hero-stats {
    width: 100%;
    background: linear-gradient(to bottom,
        rgba(26, 26, 26, 0.5) 0%,
        rgba(26, 26, 26, 0.664) 20%,
        rgba(0, 0, 0, 0.95) 60%,
        rgba(0, 0, 0, 1) 100%);
    backdrop-filter: blur(0px);
    padding: 2rem 3rem 5rem;
    border-top: none;
    position: relative;
    z-index: 3;
}

.hero-stats h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: 1.2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 0.8rem;
    border: 2px solid rgba(107, 142, 35, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box:hover {
    background: linear-gradient(145deg, rgba(107, 142, 35, 0.1), rgba(107, 142, 35, 0.05));
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(107, 142, 35, 0.2);
}

.stat-box .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.4rem;
    font-family: var(--font-main);
    text-shadow: 0 2px 10px rgba(107, 142, 35, 0.3);
}

.stat-box .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box p {
    font-size: 0.75rem;
    color: var(--secondary-text);
    line-height: 1.3;
}

/* Team Section */
.team-section {
    background-color: #151515;
}

/* Servicios Section (PDF) */
.servicios-section {
    background-color: #1a1a1a;
    padding: 3rem 2rem 150px 2rem;
}

.servicios-container {
    width: 90%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: var(--sidebar-width);
    padding-bottom: 0;
}

.servicios-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.servicios-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text);
    text-align: center;
    margin-bottom: 2rem;
}

.pdf-container {
    width: 100%;
    flex: 1;
    max-height: calc(100vh - 350px);
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(107, 142, 35, 0.4);
    position: relative;
    margin-bottom: 1rem;
}

.pdf-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.pdf-container:hover .pdf-controls {
    opacity: 1;
    pointer-events: auto;
}

#toolbar{
    display: none;
}

.pdf-control-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(107, 142, 35, 0.6);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.pdf-control-btn:hover {
    background: rgba(107, 142, 35, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 142, 35, 0.5);
    border-color: rgba(107, 142, 35, 1);
}

.pdf-control-btn svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.pdf-note a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 700;
}



/* Minimal Footer (Fixed) */
.minimal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #4a6b22 0%, #3a5518 100%);
    backdrop-filter: blur(15px);
    border-top: 2px solid rgba(107, 142, 35, 0.6);
    padding: 1rem 2rem;
    z-index: 90;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.minimal-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    gap: 2rem;
    padding-left: var(--sidebar-width);
    margin-bottom: 0.5rem;
}

.footer-logo-section {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-contact {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: #fff;
}

.footer-link .icon {
    font-size: 1.2rem;
}

.footer-love {
    text-align: center;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

.footer-love p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

.footer-love a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.footer-love a:hover {
    border-bottom-color: #fff;
}

/* Ajustar padding bottom de secciones para footer fijo */
.section {
    padding-bottom: 120px;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive - Tablets */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        text-align: center;
        gap: 2rem;
    }

    .hero-section::before {
        width: 100%;
        opacity: 0.3;
    }

    .hero-section::after {
        width: 100%;
        background: linear-gradient(to bottom,
            rgba(26, 26, 26, 0.7) 0%,
            rgba(26, 26, 26, 0.95) 50%,
            rgba(26, 26, 26, 1) 100%);
    }

    .hero-section .container {
        padding-top: 4rem;
        justify-content: center;
    }

    .hero-content {
        max-width: 85%;
        text-align: center;
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .sidebar {
        display: none;
    }

    .minimal-footer-content {
        flex-direction: column;
        padding-left: 0;
        gap: 1rem;
        text-align: center;
    }

    .footer-logo-section {
        order: -1;
    }

    .footer-contact {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-love {
        text-align: center;
    }

    .servicios-container {
        padding-left: 0;
        padding: 2rem 1rem;
        padding-bottom: 180px;
    }

    .servicios-title {
        font-size: 1.8rem;
    }

    .servicios-subtitle {
        font-size: 1rem;
    }

    .pdf-container {
        max-height: 65vh;
        min-height: 500px;
    }

    .pdf-controls {
        opacity: 1;
        pointer-events: auto;
    }

    .pdf-control-btn {
        width: 55px;
        height: 55px;
    }

    .pdf-control-btn svg {
        width: 28px;
        height: 28px;
    }

    .pdf-note {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-stats {
        padding: 1.5rem 1rem;
        position: relative;
        margin-bottom: 6rem;
    }

    .hero-stats h2 {
        font-size: 1.3rem;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-box {
        padding: 0.8rem;
    }

    .stat-box .stat-number {
        font-size: 1.8rem;
    }

    .stat-box .stat-label {
        font-size: 0.7rem;
    }

    .stat-box p {
        font-size: 0.7rem;
    }

    .hero-image {
        width: 100%;
        height: 40%;
    }

    .main-header {
        padding: 1.5rem 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .btn-contact {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Responsive - Móviles */
@media (max-width: 768px) {
    .servicios-section {
        padding-bottom: 200px;
    }

    .hero-section .container {
        padding-top: 3.5rem;
        justify-content: center;
    }

    .hero-content {
        max-width: 90%;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-stats {
        padding: 1rem 0.5rem;
        position: relative;
        margin-bottom: 3rem;
    }

    .hero-stats h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        padding: 0 0.5rem;
    }

    .stat-box {
        padding: 0.8rem 0.5rem;
    }

    .stat-box .stat-number {
        font-size: 1.5rem;
    }

    .stat-box .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.03em;
    }

    .stat-box p {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .servicios-title {
        font-size: 1.5rem;
    }

    .servicios-subtitle {
        font-size: 0.9rem;
    }

    .pdf-container {
        max-height: 55vh;
        min-height: 400px;
        border-radius: 0.5rem;
    }

    .pdf-controls {
        opacity: 1;
        pointer-events: auto;
        gap: 1rem;
        bottom: 1.5rem;
    }

    .pdf-control-btn {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }

    .pdf-control-btn svg {
        width: 32px;
        height: 32px;
    }

    .pdf-note {
        font-size: 0.85rem;
        padding: 1.2rem;
        background: rgba(107, 142, 35, 0.1);
        border-radius: 0.5rem;
        margin-top: 1rem;
    }

    .pdf-note a {
        color: var(--accent-color);
        text-decoration: underline;
        font-weight: 700;
    }

    .minimal-footer-content {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }

    .footer-logo-section {
        display: none;
    }

    .footer-contact {
        gap: 0;
    }

    .footer-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .footer-social-icons {
        gap: 0.8rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .footer-love {
        padding: 0.6rem 1rem;
    }

    .footer-love p {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .footer-love a {
        display: inline;
    }

    .main-header {
        padding: 1rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .btn-contact {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Responsive - Altura baja (Landscape móviles y pantallas pequeñas) */
@media (max-height: 700px), (max-width: 480px) {
    .hero-section .container {
        padding-top: 2rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .hero-stats {
        padding: 0.8rem 1rem;
        margin-top: -2rem;
    }

    .hero-stats h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .stats-container {
        gap: 0.5rem;
    }

    .stat-box {
        padding: 0.5rem;
    }

    .stat-box .stat-number {
        font-size: 1.2rem;
    }

    .stat-box .stat-label {
        font-size: 0.55rem;
        margin: 0.2rem 0;
    }

    .stat-box p {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .servicios-section {
        padding: 1.5rem 1rem 150px;
    }

    .servicios-title {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .servicios-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .pdf-container {
        max-height: 50vh;
        min-height: 300px;
    }

    .minimal-footer-content {
        padding: 0.5rem 1rem;
    }

    .footer-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .footer-love {
        padding: 0.4rem 1rem;
    }

    .footer-love p {
        font-size: 0.65rem;
    }

    .main-header {
        padding: 0.8rem 1rem;
    }

    .header-logo {
        height: 35px;
    }
}

@media (max-height: 600px), (max-width: 390px) {
    .hero-section .container {
        padding-top: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .hero-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .hero-stats {
        padding: 0.5rem 0.8rem;
        margin-top: -2.5rem;
    }

    .hero-stats h2 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .stats-container {
        gap: 0.4rem;
    }

    .stat-box {
        padding: 0.4rem;
    }

    .stat-box .stat-number {
        font-size: 1rem;
    }

    .stat-box .stat-label {
        font-size: 0.5rem;
        margin: 0.1rem 0;
    }

    .stat-box p {
        font-size: 0.55rem;
        line-height: 1.1;
    }

    .servicios-title {
        font-size: 1.1rem;
    }

    .servicios-subtitle {
        font-size: 0.75rem;
    }

    .pdf-container {
        max-height: 45vh;
        min-height: 250px;
    }

    .main-header {
        padding: 0.6rem 0.8rem;
    }

    .header-logo {
        height: 30px;
    }
}