/* CSS Variables - R12 2026 Editorial / Minimalist Palette */
:root {
    /* Base Neutral Palette */
    --bg-color: #ffffff;
    --surface-color: #f7f7f7;
    --surface-dark: #111111;
    --text-color: #111111;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --border-color-dark: #333333;

    /* Accent Colors (Extracted from Brandbook) */
    --color-orange: #fc4c01;
    --color-orange-pale: #ffdbb8;
    --color-green: #1e7f41;
    --color-pink: #ffe5f9;
    --color-yellow: #fef964;
    --color-mint: #cdebab;
    --color-blue: #789bbf;
    --color-blue-alpha: rgba(120, 155, 191, 0.2);

    --font-main: 'Outfit', sans-serif;

    --border-radius: 16px; /* Se agregó border radius para suavizar y dar toque moderno */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Premium Additions */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --glass-blur: blur(20px);
    --mesh-gradient: radial-gradient(at 0% 0%, var(--color-orange-pale) 0px, transparent 50%),
                     radial-gradient(at 100% 0%, var(--color-pink) 0px, transparent 50%),
                     radial-gradient(at 100% 100%, var(--color-blue-alpha) 0px, transparent 50%),
                     radial-gradient(at 0% 100%, #ffffff 0px, transparent 50%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: var(--mesh-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Watermark Decorativo */
.watermark-text {
    position: absolute;
    font-family: var(--font-main);
    font-size: clamp(6rem, 12vw, 15rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.03);
    z-index: 0;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Animaciones Reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Grids and Layout - Modular System */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.grid-line {
    border-bottom: 1px solid var(--border-color);
}

.grid-line-top {
    border-top: 1px solid var(--border-color);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-light);
    font-weight: 300;
    max-width: 800px;
}

.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-orange);
    display: block;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-align: center;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    transition: var(--transition);
    border-radius: 30px; /* Bordes redondeados dinámicos */
}

.btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange), #ff7b00);
    border: none;
    color: white;
    box-shadow: 0 8px 25px rgba(252, 76, 1, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff7b00, var(--color-orange));
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(252, 76, 1, 0.6);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(252, 76, 1, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links a {
    margin-left: 3rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.nav-links a:hover {
    color: var(--surface-dark);
}

.btn-nav {
    border: 1px solid white;
    padding: 0.6rem 1.5rem;
    color: white !important;
}

.btn-nav:hover {
    background-color: white !important;
    color: var(--color-orange) !important;
}
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    z-index: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 1.5rem 0;
    color: white;
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Hero Banner Only */
.hero-banner-only {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--surface-dark); /* Background for transition safety */
}

.hero-banner-only::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente sutil solo arriba para la legibilidad de la navegación */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 20%);
    z-index: 10;
    pointer-events: none;
}

.hero-banner-only .watermark-text {
    animation: entranceWatermark 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatingWatermark 25s ease-in-out 2.5s infinite alternate;
    opacity: 0;
}

@keyframes entranceWatermark {
    0% {
        transform: translate(30vw, 40vh) scale(0.5) rotate(10deg);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes floatingWatermark {
    0% {
        top: 10%; left: -5vw;
        transform: translate(0, 0) scale(1);
    }
    100% {
        top: 50%; left: 30vw;
        transform: translate(0, 0) scale(1.5);
    }
}

/* Intro Section */
.intro-section {
    padding-top: 100px;
    padding-bottom: 80px;
    background: transparent;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content-full {
    max-width: 900px;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    font-weight: 300;
}

.hero-btn-outline:hover {
    background-color: white !important;
    color: black !important;
}

.hero-image-wrapper {
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
    overflow: hidden;
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-image-wrapper img {
    width: 100%;
    display: block;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transform: none;
}

/* About Section (Modular Grid Style) */
.about-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.about-image-container {
    position: relative;
}

.about-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-orange);
    z-index: 1;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    border-top: 1px solid var(--border-color-dark);
    padding-top: 1rem;
}

.value-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--color-orange);
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Services (Divisions) Section */
.services-header {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.service-card {
    padding: 4rem 3rem;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(252, 76, 1, 0.05));
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--color-orange);
    transition: width 0.4s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
    z-index: 2;
}

.service-card:hover::before,
.service-card:hover::after {
    width: 100%;
}

.card-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-orange);
    margin-bottom: 2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    font-weight: 300;
}

/* Slider Styles */
.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Remover el fondo negro para evitar franjas, ya que object-fit: cover llenará el contenedor */
    background-color: transparent;
    aspect-ratio: 4 / 3; /* El aspect-ratio se define en el wrapper para enmascarar el interior */
}

.slider-container {
    position: absolute;
    top: -15%;
    left: -5%;
    width: 110%;
    height: 130%; /* Contenedor más grande para que el parallax (translateY) no muestre los bordes */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.slide.previous {
    opacity: 1;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Team Section */
.team-section {
    background-color: var(--bg-color);
    position: relative;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-card {
    text-align: center;
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.team-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--color-orange);
    box-shadow: 0 10px 20px rgba(252, 76, 1, 0.2);
    transition: var(--transition);
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--color-orange);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact Section */
.contact-section {
    background-color: var(--surface-dark);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-info h2 {
    color: white;
}

.contact-info .subtitle {
    color: #999;
}

.contact-list {
    list-style: none;
    margin-top: 3rem;
}

.contact-list li {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-list a {
    color: white;
    position: relative;
    display: inline-block;
}

.contact-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-orange);
    transition: width 0.3s ease;
}

.contact-list a:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #000000;
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #666;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.footer-col a {
    display: block;
    color: #cccccc;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color-dark);
    font-size: 0.85rem;
    color: #666;
}

/* Responsive */
@media (max-width: 968px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-grid, .about-grid, .about-values, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }

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

    .service-card {
        padding: 3rem 2rem;
    }
}