:root {
    --verde: #e6af1f;
    --verde-claro: #2E8B57;
    --verde-oscuro: #0c2a55;
    --crema: #F8F6F0;
    --blanco: #FFFFFF;
    --negro: #0A0A0A;
    --gris: #666666;
    --gris-claro: #AAAAAA;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--blanco);
    color: var(--negro);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--verde-oscuro);
}

a {
    color: var(--verde);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--verde-claro);
}

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

.navbar-cad {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--blanco);
    border-bottom: 4px solid var(--verde);
    box-shadow: 0 1px 10px rgba(0,0,0,0.06);
    padding: 0.6rem 0;
}

.navbar-brand-cad {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--verde-oscuro);
    letter-spacing: 0.2px;
}

.navbar-brand-cad img {
    height: 42px;
    width: auto;
    margin-right: 0.7rem;
}

.nav-link-cad {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gris);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link-cad::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--verde);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link-cad:hover {
    color: var(--verde-oscuro);
}

.nav-link-cad:hover::after {
    transform: scaleX(1);
}

.nav-link-cad i {
    font-size: 0.85rem;
    margin-right: 0.35rem;
}

.btn-cad {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.55rem 1.3rem;
    border-radius: 0;
    border: 2px solid var(--verde);
    transition: all 0.25s ease;
}

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

.btn-cad-verde:hover {
    background: var(--verde-oscuro);
    border-color: var(--verde-oscuro);
    color: var(--blanco);
}

.btn-cad-outline {
    background: transparent;
    color: var(--verde);
}

.btn-cad-outline:hover {
    background: var(--verde);
    color: var(--blanco);
}

main {
    padding-top: 80px;
}

.section-cad {
    padding: 5rem 0;
    position: relative;
}

.bg-crema {
    background: var(--crema);
}

.bg-blanco {
    background: var(--blanco);
}

.bg-verde {
    background: var(--verde-oscuro);
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--verde);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.3rem 0;
    border-top: 2px solid var(--verde);
    border-bottom: 2px solid var(--verde);
}

.section-label-light {
    color: var(--crema);
    border-color: var(--crema);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--verde-oscuro);
}

.section-title-light {
    color: var(--blanco);
}

.lead-cad {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.7;
    font-weight: 400;
}

.text-cad {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.text-light-cad {
    color: rgba(255,255,255,0.88);
}

.divider-cad {
    height: 3px;
    width: 60px;
    background: var(--verde);
    margin: 1.5rem 0;
}

.divider-wide {
    height: 1px;
    background: #e0e0e0;
    margin: 2.5rem 0;
}

.img-cad {
    width: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(30%) contrast(1.05);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.img-cad:hover {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.02);
}

.aspect-hero {
    aspect-ratio: 16 / 10;
}

.aspect-card {
    aspect-ratio: 4 / 3;
}

.aspect-wide {
    aspect-ratio: 21 / 9;
}

.aspect-tall {
    aspect-ratio: 3 / 4;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    min-height: 85vh;
    align-items: center;
}

.hero-text-panel {
    background: var(--blanco);
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 2;
    margin-right: -4rem;
    border-right: 6px solid var(--verde);
}

.hero-image-panel {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.hero-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--verde);
    opacity: 0.15;
    z-index: 0;
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-text-panel {
        margin-right: 0;
        border-right: none;
        border-bottom: 6px solid var(--verde);
        padding: 2rem 1.5rem;
    }
    .hero-image-panel {
        height: 300px;
    }
}

.masonry-grid {
    column-count: 2;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.card-editorial {
    background: var(--blanco);
    border-left: 5px solid var(--verde);
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card-editorial:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.card-editorial h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--verde-oscuro);
    margin-bottom: 0.7rem;
}

.card-editorial p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 0;
}

.card-editorial i {
    color: var(--verde);
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.meta-cad {
    font-size: 0.7rem;
    color: var(--gris-claro);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.sticky-side {
    position: sticky;
    top: 100px;
}

.side-block {
    background: var(--verde-oscuro);
    color: var(--blanco);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.side-block h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--crema);
    margin-bottom: 0.5rem;
}

.side-block p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0;
}

.side-block i {
    color: var(--verde-claro);
    margin-right: 0.4rem;
}

.cta-block {
    background: var(--blanco);
    border: 2px solid var(--verde);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-block:hover {
    background: var(--verde);
}

.cta-block:hover i,
.cta-block:hover h3,
.cta-block:hover p {
    color: var(--blanco);
}

.cta-block i {
    font-size: 2.5rem;
    color: var(--verde);
    margin-bottom: 1.2rem;
    transition: color 0.3s ease;
}

.cta-block h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}

.cta-block p {
    font-size: 0.88rem;
    color: var(--gris);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.footer-cad {
    background: var(--blanco);
    border-top: 4px solid var(--verde);
    padding: 3rem 0 2.5rem;
}

.footer-cad p {
    font-size: 0.85rem;
    color: var(--gris);
    margin-bottom: 0.3rem;
}

.footer-cad .social-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--crema);
    color: var(--verde-oscuro);
    border: 2px solid var(--verde);
    margin: 0 0.3rem;
    transition: all 0.2s ease;
}

.footer-cad .social-link:hover {
    background: var(--verde);
    color: var(--blanco);
}

.overlap-image {
    position: relative;
}

.overlap-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    right: 20px;
    bottom: -20px;
    border: 3px solid var(--verde);
    z-index: -1;
    opacity: 0.3;
}

@media (max-width: 991px) {
    main {
        padding-top: 75px;
    }
    .section-cad {
        padding: 3rem 0;
    }
    .masonry-grid {
        column-count: 1;
    }
    .overlap-image::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .navbar-brand-cad {
        font-size: 1.1rem;
    }
    .navbar-brand-cad img {
        height: 32px;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .hero-text-panel {
        padding: 1.5rem 1rem;
    }
}
