:root {
    --orange: #ff6a1a;
    --green: #24b03c;
    --dark: #222222;
    --text: #222222;
    --muted: #777777;
    --bg: #f4f4f4;
    --white: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}
.justificar {
    text-align: justify;
}

/* ========== HEADER / NAV ========== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
    background: #ffffff;
    border-bottom: 3px solid var(--orange);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    border: 2px solid var(--orange);
    padding: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
}

.main-nav ul {
    display: flex;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--orange);
    color: #ffffff;
}


/* Hamburguesa */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.2rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--dark);
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}


/* ========== HERO ========== */

main {
    padding: 2.5rem 1.2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.hero-left h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    margin: 0 0 0.5rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.hero-desc {
    font-size: 0.98rem;
    max-width: 32rem;
}

.hero-tagline-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-line {
    flex: 1;
    height: 2px;
    background: var(--dark);
}

.hero-page-number {
    font-weight: 700;
}

.hero-right {
    position: relative;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: 230px;
    border-radius: 8px;
    overflow: hidden;
    background-image: linear-gradient(to bottom right, #999, #444);
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-image-text {
    position: relative;
    margin: 0;
    font-size: 0.95rem;
    max-width: 18rem;
}


/* ========== SECCIONES GENERALES ========== */

.section {
    margin-bottom: 3rem;
}

.section-inner {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem 1.8rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
}

.section-split-two .about-grid {
    margin-top: 1.5rem;
}

.section-title-green {
    font-size: 2rem;
    color: var(--green);
    margin: 0.3rem 0 0.5rem;
}

.section-title-white {
    font-size: 2rem;
    color: #ffffff;
    margin: 0.3rem 0 0.8rem;
}

.section-index-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
}

.section-index-line.light {
    color: #ffffff;
}

.section-index-number {
    font-weight: 700;
}

.section-horizontal-line {
    flex: 1;
    height: 2px;
    background: currentColor;
    opacity: 0.65;
}

.tagline,
.mini-tagline {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.6rem;
}


/* ========== SOBRE NOSOTROS ========== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.4rem 1.3rem;
    border: 1px solid #e5e5e5;
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ========== SPLIT SECTIONS (Misión / Visión) ========== */

.section-split-right .section-inner,
.section-split-left .section-inner {
    padding: 0;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 0;
}

.split-layout.split-reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
}

.split-text {
    padding: 2rem 2rem 2.3rem;
}

.split-text p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.split-image {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grey-image {
    background: #dddddd;
    color: #666666;
    font-size: 0.9rem;
    font-weight: 600;
}


/* ========== VALORES ========== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    padding: 1.2rem 1.1rem;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    background: #ffffff;
    font-size: 0.93rem;
}

.value-item h3 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
}


/* ========== OBJETIVOS ========== */

.objectives-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.2fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.objectives-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.objective-card {
    border-radius: 8px;
    padding: 1.4rem 1.3rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.objective-card h3 {
    margin: 0 0 0.6rem;
}

.objective-card-orange {
    background: var(--orange);
    color: #ffffff;
}

.objective-card-white {
    background: #ffffff;
    border: 1px solid #e2e2e2;
}

.objectives-side-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.objectives-side-title h3 {
    font-size: 2rem;
    color: var(--green);
    text-align: center;
}


/* ========== EQUIPO / TIMELINE ========== */

.section-team .section-inner {
    padding: 2rem 1.8rem 2.3rem;
}

.team-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.1fr);
    gap: 1.8rem;
}

.team-intro .team-title {
    font-size: 2rem;
    color: #ffffff;
}

.team-intro {
    background: var(--orange);
    color: #ffffff;
    border-radius: 8px;
    padding: 1.8rem 1.6rem;
}

.team-intro .section-index-line {
    color: #ffffff;
}

.team-intro p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.team-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}

.timeline-column {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-column::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #999999;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.2rem;
}

.timeline-dot {
    left: -0.07rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--orange);
}

.timeline-content h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}

.timeline-content ul {
    padding-left: 1.1rem;
    margin: 0;
    font-size: 0.9rem;
}


/* ========== SERVICIOS ========== */

.section-orange .section-inner {
    background: var(--orange);
    color: #ffffff;
}

.section-orange .section-horizontal-line {
    background: #ffffff;
}

.section-orange .bullet-list li::marker {
    color: #ffffff;
}

.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.4fr);
    gap: 2rem;
    margin-top: 1.4rem;
}

.services-text h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.services-text p {
    font-size: 0.94rem;
    line-height: 1.7;
}

.bullet-list {
    padding-left: 1.2rem;
    font-size: 0.94rem;
}

.bullet-list li {
    margin-bottom: 0.3rem;
}

.services-side-logo {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.logo-card {
    background: #ffffff;
    color: #111111;
    border-radius: 16px;
    padding: 1.4rem 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    min-width: 180px;
    max-width: 220px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.logo-card img {
    max-width: 130px;
}

.tagline-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green);
}


/* ========== VENTAJA COMPETITIVA ========== */

.section-advantage .section-inner {
    padding: 0;
}

.advantage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.7fr);
    gap: 0;
}

.advantage-image {
    min-height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advantage-content {
    background: var(--orange);
    color: #ffffff;
    padding: 2.2rem 2.1rem 2.4rem;
}

.section-title-white.center {
    text-align: center;
}

.advantage-content p {
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ========== FOOTER / CONTACTO ========== */

.site-footer {
    background: #ffffff;
    border-top: 3px solid var(--orange);
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.2rem 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 2rem;
}

.footer-contact-list {
    margin-top: 1.2rem;
    font-size: 0.95rem;
}

.footer-item h3 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
}

.footer-item p {
    margin: 0 0 0.8rem;
}

.footer-item a {
    color: var(--dark);
    text-decoration: none;
}

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

.footer-map-wrap iframe {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    border: 0;
}

.footer-logo {
    max-width: 120px;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-claim {
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid #e4e4e4;
    padding: 0.8rem 1.5rem 1.2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}


/* ========== ANIMACIÓN SCROLL (reveal) ========== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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


/* ========== RESPONSIVE ========== */

@media (max-width: 992px) {
    main {
        padding: 2rem 1.1rem 2.5rem;
    }
    .hero {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .split-layout,
    .split-layout.split-reverse {
        grid-template-columns: 1fr;
    }
    .split-image {
        order: -1;
    }
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .objectives-layout {
        grid-template-columns: 1fr;
    }
    .team-layout {
        grid-template-columns: 1fr;
    }
    .team-intro {
        order: -1;
    }
    .services-layout {
        grid-template-columns: 1fr;
    }
    .advantage-layout {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #ffffff;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        transition: max-height 0.25s ease;
    }
    .main-nav.open {
        max-height: 360px;
    }
    .main-nav ul {
        flex-direction: column;
        padding: 0.6rem 1.3rem 1rem;
    }
    .main-nav a {
        width: 100%;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .team-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 1.9rem;
    }
    .section-inner {
        padding: 1.6rem 1.3rem;
    }
    .team-intro {
        padding: 1.6rem 1.3rem;
    }
}