:root {
    --primary: #002147;
    --accent: #FFC000;
    --orange: #F2711C;
    --text: #1a1a1a;
    --text-light: #4a4a4a;
    --white: #ffffff;
    --light: #f4f7f6;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.tag {
    background: var(--accent);
    color: #000;
    display: inline-block;
    padding: 8px 30px 8px 20px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 25px;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
    text-transform: uppercase;
}

.section-title {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.1;
}

.line-accent {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-bottom: 30px;
}

/* â”€â”€ Header y NavegaciÃ³n â”€â”€ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    transition: var(--transition);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}



.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100px;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-img-footer {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* If the logo needs to be white on dark bg, or keep as is */
}

/* Forcing footer logo to be visible if it has color */
.footer .logo-img-footer {
    filter: none; /* Keep original colors for now, adjust if needed */
    background: white;
    padding: 5px;
    border-radius: 8px;
}

.web-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--accent) !important;
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid var(--accent);
}

.web-link:hover {
    background: var(--accent);
    color: var(--primary) !important;
    transform: translateY(-2px) rotate(15deg);
}

.web-nav-item {
    display: flex;
    align-items: center;
    margin-left: 10px;
}



.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.cta-nav {
    background: var(--accent) !important;
    color: var(--primary-dark) !important;
    font-weight: 700;
    padding: 10px 24px !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 15px rgba(255, 192, 0, 0.3);
}

.cta-nav:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* â”€â”€ Hero â”€â”€ */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 33, 71, 0.7), rgba(0, 33, 71, 0.7)), url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}


/* Removed skewed backgrounds for cleaner look with image */


.dots-pattern {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(#ccc 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    height: 100%;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-left {
    padding-left: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 6rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.brand-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 40px;
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.4;
}


.hero-url {
    margin-top: 100px;
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
}

.hero-right {
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Geometric Decorators */
.decorator-yellow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
    z-index: 1;
}

.decorator-blue {
    position: absolute;
    width: 200px;
    height: 300px;
    background: var(--primary);
    clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* â”€â”€ Section Grid Pattern â”€â”€ */
.section-grid {
    padding: 0 !important;
}

/* â”€â”€ Standard Image Clip â”€â”€ */
.who-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

/* â”€â”€ QuiÃ©nes Somos â”€â”€ */
.who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.who-image-container {
    height: 100%;
}

.who-text {
    padding: 100px 10%;
    background: #fff;
    position: relative;
}

.who-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 100px;
    background: var(--primary);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.who-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 50px;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    z-index: 1;
}

/* â”€â”€ FundaciÃ³n de Torres â”€â”€ */
.fundacion-layout {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 0;
    align-items: start;
}

.fundacion-bar {
    width: 100%;
    height: 100%;
    background: var(--primary);
    min-height: 600px;
}

.hex-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0 40px 40px;
}

.hex-item {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hex-mask {
    width: 160px;
    height: 180px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--transition);
}

.hex-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hex-content h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.hex-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 300px;
    line-height: 1.4;
}

.service-card,
.seguridad-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.service-card:hover,
.seguridad-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.service-card h3,
.seguridad-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

/* Cifras */
.section-cifras {
    background: var(--light);
}

.cifras-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
}

.cifra-item {
    text-align: center;
}

.cifra-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.cifra-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 8px;
    display: block;
}

/* Equipamiento */
.equip-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.equip-card {
    background: var(--primary);
    color: #fff;
    padding: 16px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
}

/* Seguridad y Calidad */
.seguridad-card {
    text-align: center;
}

.cert-note {
    text-align: center;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 30px;
    font-size: 1.1rem;
}

/* Montaje de Torres */
.montaje-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.montaje-list {
    list-style: none;
}

.montaje-list li {
    margin-bottom: 30px;
}

.montaje-list h4 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Logros */
.logros-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.logros-left {
    padding: 80px 10%;
    background: #fff;
}

.logros-right {
    background: var(--primary);
    position: relative;
    padding: 80px 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* â”€â”€ Tendido de Redes â”€â”€ */
.tendido-image-box {
    position: relative;
    width: 100%;
}

.callout-box {
    position: absolute;
    bottom: -30px;
    left: 40px;
    background: #fff;
    padding: 30px 40px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 10;
}

.callout-year {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
    line-height: 1;
}

.callout-text {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 1px;
}

.callout-subtext {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* â”€â”€ KPI Box (Logros) â”€â”€ */
.kpi-overlay-box {
    background: rgba(0,0,0,0.4);
    border: 2px solid var(--accent);
    padding: 40px;
    color: #fff;
    width: 100%;
    max-width: 450px;
    position: absolute;
    bottom: 50px;
    right: 50px;
}

.kpi-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.kpi-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kpi-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-right: 10px;
}

.kpi-txt {
    font-size: 1.1rem;
    font-weight: 600;
}

/* â”€â”€ Profile Quote â”€â”€ */
.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    object-fit: cover;
}

.profile-quote-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
}

/* â”€â”€ Split Layouts (Equipo, Contacto) â”€â”€ */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr;
    gap: 0;
    min-height: 700px;
}

.split-navy {
    background: var(--primary);
    color: #fff;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-navy .section-title {
    color: #fff;
}

.split-navy .line-accent {
    background: #fff;
}

.split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-cards {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    background: #f8f9fa;
}

.info-card {
    background: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.2rem;
}

.info-card h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.info-card p {
    font-size: 1rem;
    font-weight: 800;
    color: #000;
}

/* â”€â”€ Proyectos Grid â”€â”€ */
.proyectos-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.proyectos-images {
    position: relative;
    height: 600px;
}

.proyectos-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 0;
}

.proyectos-item h4 {
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 800;
}

.proyectos-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    width: 50%;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 0;
    padding-left: 40px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: #fff;
    padding: 30px;
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow);
}

.contact-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.contact-item p {
    font-weight: 600;
    color: var(--text);
}

.thanks-box {
    text-align: center;
    padding: 100px 20px;
    background: var(--primary);
    color: #fff;
    margin-top: 100px;
}

.thanks-box h2 {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* â”€â”€ Premium Coverflow 3D Carousel (Experiencias) â”€â”€ */
.experiences-section {
    background: radial-gradient(circle at center, #1a2a3a 0%, #002147 100%);
    perspective: 2000px;
    overflow: hidden;
    padding: 60px 0 40px 0;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.experiences-section .section-title {
    color: #fff;
}

.experiences-section .tag {
    background: var(--accent);
    color: #000;
}

.carousel-3d-container {
    width: 100%;
    height: 750px;
    position: relative;
    margin: 30px auto;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    touch-action: pan-y;
    user-select: none;
}

.carousel-3d-container.dragging {
    cursor: grabbing;
}

.carousel-3d-container:not(.dragging) {
    cursor: grab;
}

.carousel-3d-track {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay nav buttons on the carousel */
.carousel-nav-3d {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 600;
}

.nav-btn-3d {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: rgba(0,33,71,0.7);
    color: var(--accent);
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    backdrop-filter: blur(4px);
}

.nav-btn-3d:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.1);
}

/* Indicators inside carousel bottom */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 600;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-indicators .dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

.project-card-3d {
    position: absolute;
    width: 660px;
    height: 500px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border-radius: 12px;
    border-top: 6px solid var(--accent);
    padding: 0;
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    color: #333;
}

.project-card-3d .card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-card-3d .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card-3d.active .card-img-wrap img {
    transform: scale(1.05);
}

.project-card-3d .card-body {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card-3d .card-tag {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 14px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.project-card-3d h3 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.project-card-3d .card-type {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Brillo para tarjeta activa */
.project-card-3d.active {
    box-shadow: 0 0 60px rgba(255, 192, 0, 0.3), 0 40px 80px rgba(0,0,0,0.5);
    border: 2px solid var(--accent);
}

.project-card-3d::after {
    content: '';
    position: absolute;
    bottom: -180px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(255,255,255,0.3), transparent);
    transform: perspective(1000px) rotateX(180deg) scaleY(0.5);
    opacity: 0.15;
    pointer-events: none;
}

.detail-btn {
    align-self: flex-start;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.detail-btn:hover {
    background: var(--accent);
    color: #000;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-indicators .dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* â”€â”€ Modal de Detalles â”€â”€ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 50px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    border-top: 10px solid var(--accent);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #000;
    cursor: pointer;
    line-height: 1;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.modal-info h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 2rem;
}

.modal-list {
    list-style: none;
}

.modal-list li {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.modal-list strong {
    color: var(--primary);
}

/* â”€â”€ Footer â”€â”€ */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 80px 0 40px;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {

    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* â”€â”€ Trayectoria Highlight â”€â”€ */
.trayectoria-highlight .who-text::after,
.trayectoria-highlight .who-text::before {
    display: none; /* Clear previous decorative elements if overlapping */
}

/* â”€â”€ Responsividad â”€â”€ */
@media (max-width: 1100px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .who-grid, .fundacion-layout, .split-layout, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .who-image-container, .who-image {
        clip-path: none !important;
    }
    
    .who-text {
        padding: 60px 5%;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .brand-subtitle {
        font-size: 1rem;
    }
    .hero-content .cta-nav {
        font-size: 0.85rem;
        padding: 12px 24px !important;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    .who-text {
        padding: 40px 5%;
    }
    
    .proyectos-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .proyectos-images {
        height: 400px;
    }
    
    .tendido-image-box .callout-box {
        position: relative;
        bottom: 0;
        left: 0;
        max-width: 100%;
        margin-top: -5px;
        flex-wrap: wrap;
    }
    
    .kpi-overlay-box {
        position: relative;
        bottom: 0;
        right: 0;
        max-width: 100%;
    }
    
    .contacto {
        padding: 60px 0;
    }
    .contacto .section-title {
        font-size: 2rem;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
    .split-image {
        display: none;
    }
    .split-cards {
        padding: 30px 20px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .carousel-3d-container {
        height: 450px;
    }
    .project-card-3d {
        width: 90vw;
        height: 380px;
    }
    .project-card-3d .card-img-wrap {
        height: 150px;
    }
    
    .experiences-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .thanks-title {
        font-size: 3rem !important;
    }
}
/* â”€â”€ SecciÃ³n Contacto â”€â”€ */
.contacto {
    padding: 100px 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.contacto::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url('assets/24.png') no-repeat bottom left / contain;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.contacto .container {
    position: relative;
    z-index: 1;
}

.contacto .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    padding: 6px 20px;
    font-size: 0.85rem;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contacto .section-title {
    color: var(--primary);
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.contacto .section-desc {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: start;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 0;
}

.contacto-info-card {
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.contacto-info-card:hover {
    transform: translateX(-6px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.contacto-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-icon {
    font-size: 1.4rem;
}

.contacto-card-body h4 {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contacto-card-body p {
    color: #000;
    font-size: 1rem;
    font-weight: 600;
}

.contacto-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 18px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    margin-top: 10px;
}

.contacto-whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.contacto-form-wrap {
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #eaeaea;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
    background: #fff;
    color: #333;
}

.form-input::placeholder {
    color: #aaa;
}

.form-input:focus {
    border-color: #E69D23;
    box-shadow: 0 0 0 4px rgba(230, 157, 35, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-full {
    width: 100%;
    background: #E69D23 !important; /* Solid orange */
    color: #fff !important;
    padding: 18px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(230, 157, 35, 0.2);
    text-transform: uppercase;
}

.btn-full:hover {
    background: #d48b1a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 157, 35, 0.3);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-full:hover .btn-arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .contacto-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contacto-form-wrap {
        padding: 30px 20px;
    }
    .contacto-info {
        padding-top: 0;
    }
}

/* â”€â”€ WhatsApp Float â”€â”€ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

/* â”€â”€ Final Thanks Section (Screenshot Match) â”€â”€ */
.thanks-section {
    position: relative;
    min-height: 550px;
    background: #fff;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
}

.thanks-left {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.thanks-title {
    font-family: 'Playfair Display', serif;
    font-size: 6.5rem;
    color: #1a1a1a;
    margin-bottom: 50px;
    letter-spacing: -2px;
}

.thanks-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    max-width: 450px;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.thanks-url {
    margin-top: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 2px;
}

/* Divisor GeomÃ©trico Estricto */
.thanks-geometric-wrap {
    position: absolute;
    top: 0;
    left: 48%;
    width: 300px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.geo-navy {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 100%;
    background: #002147; /* Corporate navy */
    clip-path: polygon(30% 0, 100% 0, 70% 100%, 0% 100%);
}

.geo-yellow {
    position: absolute;
    top: 0;
    left: 10%;
    width: 100%;
    height: 100%;
    background: #FFC000;
    clip-path: polygon(45% 0, 55% 0, 10% 100%, 0% 100%);
}

.thanks-right {
    position: relative;
    background: #fff;
}

.thanks-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

.thanks-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #e0e0e0 3px, transparent 3px);
    background-size: 20px 20px;
    z-index: 15;
}

@media (max-width: 992px) {
    .thanks-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .thanks-title {
        font-size: 4rem;
    }
    .thanks-geometric-wrap, .thanks-right {
        display: none;
    }
    .thanks-left {
        padding: 60px 20px;
        text-align: center;
        align-items: center;
    }
}

/* â”€â”€ Section Patterns â”€â”€ */
.section-paragraph {
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-block h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 800;
}

.service-block p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-light);
}

.service-icon-block {
    width: 40px;
    height: 40px;
    background: var(--orange);
    margin-bottom: 15px;
}

.seguridad-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.seguridad-card {
    flex: 1;
}

.seguridad-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.seguridad-card h4 {
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.seguridad-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .services-grid,
    .seguridad-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 1100px) {
    .fundacion-bar {
        min-height: 20px !important;
        height: 20px;
    }
    .fundacion-layout {
        grid-template-columns: 1fr;
    }
}

/* -- Trayectoria Highlight (Enhanced) -- */
.trayectoria-highlight {
    background: var(--primary);
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.trayectoria-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.trayectoria-image-side {
    position: relative;
    min-height: 550px;
}

.trayectoria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}

.trayectoria-text-side {
    padding: 100px 8%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trayectoria-highlight .callout-box {
    position: absolute;
    bottom: 50px;
    right: -30px;
    background: #fff;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border-radius: 8px;
    max-width: 480px;
    z-index: 10;
    border-left: 5px solid var(--accent);
}

.callout-year {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.callout-content {
    flex: 1;
}

.callout-text {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.callout-subtext {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
}

/* -- Contacto (Refined Layout) -- */
.contacto {
    padding: 120px 0;
    background: #fdfdfd;
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 70px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contacto-info-card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contacto-info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.contacto-icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: #000;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.contacto-whatsapp-btn {
    margin-top: 15px;
    padding: 22px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.contacto-form-wrap {
    padding: 60px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.06);
}

@media (max-width: 992px) {
    .trayectoria-container {
        grid-template-columns: 1fr;
    }
    .trayectoria-image-side {
        min-height: 400px;
    }
    .trayectoria-img {
        clip-path: none;
    }
    .trayectoria-highlight .callout-box {
        position: relative;
        bottom: 0;
        right: 0;
        margin: -40px 20px 0;
        max-width: calc(100% - 40px);
    }
    .contacto-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ==========================================================================
   REFINAMIENTOS DE RESPONSIVIDAD GLOBAL (OVERRIDES)
   ========================================================================== */

/* --- Ajustes de Tipografía Fluida --- */
h1, .brand-title { font-size: clamp(2.8rem, 8vw, 6rem) !important; }
h2, .section-title { font-size: clamp(2.2rem, 5vw, 3.5rem) !important; }

/* --- Ajustes Generales de Layout --- */
@media (max-width: 1200px) {
    .container { padding: 0 30px; }
}

@media (max-width: 992px) {
    .section { padding: 60px 0; }
    
    .hero-grid, .who-grid, .fundacion-layout, .montaje-grid, 
    .proyectos-layout, .logros-section, .split-layout, .footer-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-right { display: none; }
    .hero-left { padding: 0 5%; text-align: center; }
    
    .who-image-container, .who-image, .trayectoria-img, .hero-image {
        clip-path: none !important;
        border-radius: 12px;
        margin-bottom: 30px;
    }
    
    .fundacion-bar { display: none; }
    .hex-grid { padding: 0; }
    .hex-item { flex-direction: column; text-align: center; }
    
    .kpi-overlay-box {
        position: relative;
        bottom: 0;
        right: 0;
        margin: 20px auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header { height: auto; }
    .nav { height: 80px; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        text-align: center;
        gap: 15px;
        z-index: 1000;
    }
    
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    
    .hero {
        height: auto;
        min-height: 70vh;
        padding: 140px 0 60px;
    }
    
    .cifras-grid { gap: 30px; }
    .cifra-number { font-size: 3rem; }
    
    .callout-box {
        position: relative;
        bottom: 0;
        left: 0;
        margin: 20px 0;
        padding: 20px;
    }
    
    .thanks-title { font-size: 3rem !important; }
}

@media (max-width: 480px) {
    .section-title { font-size: 2rem !important; }
    .btn-primary { width: 100%; text-align: center; }
}

/* --- Corrección Hexágonos y Espaciado Móvil --- */
@media (max-width: 768px) {
    .fundacion-layout {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .hex-grid {
        padding: 20px !important;
        width: 100% !important;
    }
    
    .hex-item {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        margin-bottom: 40px !important;
    }
    
    .hex-mask {
        width: 140px !important;
        height: 160px !important;
        margin: 0 auto !important;
    }
    
    .hex-content p {
        max-width: 100% !important;
    }

    /* Asegurar que nada se desborde horizontalmente */
    .container, .section, body {
        overflow-x: hidden !important;
    }
    
    /* Ajuste de carrusel 3D para móviles muy pequeños */
    .carousel-3d-container {
        height: 400px !important;
    }
    .project-card-3d {
        width: 85vw !important;
    }
}

@media (max-width: 480px) {
    .hex-mask {
        width: 120px !important;
        height: 140px !important;
    }
    .section-title {
        font-size: 1.8rem !important;
    }
}

/* --- Corrección Modal Móvil --- */
@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 20px auto !important;
        padding: 30px 20px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .modal-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .modal-image img {
        height: 250px !important;
    }
    
    .modal-info h2 {
        font-size: 1.5rem !important;
    }
    
    .modal-list li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    .modal-close {
        top: 10px !important;
        right: 15px !important;
        font-size: 2rem !important;
    }
}
