/* Variables CSS para una fácil personalización */
:root {
    --primary-color: #2575fc;
    --secondary-color: #6a11cb;
    --dark-bg: #0d1117;
    --light-text: #e6edf3;
    --muted-text: #b0c2d3;
    --border-color: #30363d;
    --card-bg: #161b22;
    --hover-effect-light: rgba(37, 117, 252, 0.15); /* primary-color with transparency */
    --transition-speed: 0.3s;
    --gradient-hero: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --gradient-text: linear-gradient(90deg, #a727ff 0%, #00e0ff 100%); /* Nuevo gradiente vibrante */
    --glow-effect: 0 0 15px rgba(37, 117, 252, 0.6), 0 0 30px rgba(106, 17, 203, 0.4);
}

/* Base global & Tipografía */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base para rem */
}

body {
    font-family: 'Roboto', sans-serif; /* Roboto para el cuerpo */
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevenir scroll horizontal */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Para el posicionamiento de elementos internos */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Montserrat para encabezados */
    color: #fff;
    margin-top: 0;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    color: var(--muted-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

/* Utilidades y Clases Generales */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support text-fill-color */
    position: relative;
    display: inline-block; /* Crucial para animaciones de texto */
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--muted-text);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: transform var(--transition-speed) ease;
    transform: scaleX(0);
    transform-origin: left;
}

.btn-primary {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
.btn-primary:hover:before {
    transform: scaleX(1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Header --- */
.main-header {
    background-color: rgba(13, 17, 23, 0.9); /* Slightly more opaque */
    backdrop-filter: blur(12px); /* Enhanced blur */
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease-in-out;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-left: 10px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap; /* Evita que el nombre se rompa */
}

.studios-italic {
    font-style: italic;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(37, 117, 252, 0.5); /* Sutil resplandor */
}

/* Navigation - Desktop */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--light-text);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links li a:before {
    content: attr(data-text); /* Para el efecto hover de texto duplicado */
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-color);
    overflow: hidden;
    white-space: nowrap;
    width: 0%;
    transition: width 0.3s ease-out;
}

.nav-links li a:hover:before {
    width: 100%;
}

.nav-links li a:after { /* Subrayado animado */
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-text);
    transform: translateX(-50%);
    transition: width 0.3s ease-out;
}

.nav-links li a:hover:after {
    width: 100%;
}

/* Mobile Menu - Hamburguesa */
.menu-toggle {
    display: none; /* Ocultar el checkbox por defecto */
}

.menu-icon {
    display: none; /* Ocultar en desktop */
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-icon-line {
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-icon-line:nth-child(1) { top: 0; }
.menu-icon-line:nth-child(2) { top: 8px; }
.menu-icon-line:nth-child(3) { top: 16px; }

.menu-toggle:checked ~ .menu-icon .menu-icon-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle:checked ~ .menu-icon .menu-icon-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle:checked ~ .menu-icon .menu-icon-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.language-switcher {
    display: flex;
    margin-left: 30px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    padding: 3px;
}

.language-switcher:before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--active-lang-left, 0%);
    width: 50%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 25px;
    transition: left 0.3s ease;
    z-index: 0;
}


.lang-btn {
    background: transparent;
    border: none;
    color: var(--muted-text);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.lang-btn.active {
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.7);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 0; /* Ajuste para espacio superior */
    background-color: var(--dark-bg);
    overflow: hidden;
}

.hero-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 10;
    text-align: left;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--muted-text);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4/3; /* Maintain aspect ratio */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease-out; /* Para efecto parallax JS */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted-text);
    font-size: 0.9rem;
    opacity: 0.8;
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.scroller {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 1.5s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes scrollAnimation {
    0% { top: 8px; opacity: 1; }
    50% { top: 25px; opacity: 0; }
    100% { top: 8px; opacity: 1; }
}


/* --- Servicios Section --- */
.servicios {
    padding: 100px 0;
    background-color: var(--dark-bg);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), var(--glow-effect);
}

.service-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 0 15px rgba(37, 117, 252, 0.5);
    z-index: 1;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    font-size: 1rem;
    color: var(--muted-text);
    flex-grow: 1; /* Para que el párrafo ocupe el espacio disponible */
}

.service-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.service-card .learn-more i {
    transition: transform 0.3s ease;
}

.service-card .learn-more:hover i {
    transform: translateX(5px);
}

/* --- Proyectos Section --- */
.proyectos {
    padding: 100px 0;
    background-color: var(--dark-bg);
    position: relative;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--card-bg);
    color: var(--muted-text);
    border: 1px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

.filter-btn.active {
    background: var(--gradient-hero);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), var(--glow-effect);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px; /* Altura fija para consistencia */
    object-fit: cover; /* Recortar imagen para cubrir */
    display: block;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.85); /* Fondo oscuro semitransparente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100%); /* Inicia desde abajo */
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: center;
    padding: 20px;
    color: #fff;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.project-description {
    font-size: 0.95rem;
    color: var(--muted-text);
    margin-bottom: 20px;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    color: #fff;
}

.cta-section {
    text-align: center;
    margin-top: 80px;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: #fff;
}


/* --- Visión Section --- */
.vision {
    padding: 100px 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.vision-content-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.vision-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.vision-statement {
    margin-top: 30px;
}

.vision-statement p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.vision-statement strong {
    color: var(--primary-color);
}

.vision-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.value-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(37, 117, 252, 0.1);
}

.value-icon i {
    text-shadow: 0 0 10px rgba(37, 117, 252, 0.7);
}

.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

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

.vision-image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.vision-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

/* --- Testimonios Section --- */
.testimonios {
    padding: 100px 0;
    background-color: var(--dark-bg);
    position: relative;
}

.testimonial-slider {
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin: 20px; /* Espacio para el slider */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura que las tarjetas tengan la misma altura */
}

.testimonial-rating {
    color: #ffd700; /* Color dorado para estrellas */
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 25px;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Empuja la información del cliente hacia abajo */
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.client-info strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* Splide custom arrows/dots */
.splide__arrow {
    background-color: rgba(37, 117, 252, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.splide__arrow:hover {
    opacity: 1;
    background-color: var(--primary-color);
}

.splide__arrow svg {
    fill: #fff;
}

.splide__pagination {
    bottom: -30px; /* Ajusta la posición de los puntos */
}

.splide__pagination__page {
    background-color: var(--border-color);
    width: 10px;
    height: 10px;
    margin: 0 6px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--primary-color);
    opacity: 1;
}


/* --- Contacto Section --- */
.contacto {
    padding: 100px 0;
    background-color: var(--dark-bg);
    position: relative;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.contact-info .section-header {
    text-align: left;
    margin-bottom: 40px;
}

.contact-info .section-title {
    font-size: 2.5rem;
}

.contact-details {
    margin-top: 30px;
    display: grid;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item .contact-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background-color: rgba(37, 117, 252, 0.1);
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.contact-item a, .contact-item address {
    color: var(--muted-text);
    font-size: 1.05rem;
    font-style: normal;
    transition: color 0.3s ease;
}

.contact-item a.hover-underline:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.view-on-map {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
}

.social-links-contact {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-links-contact .social-link {
    font-size: 1.5rem;
    color: var(--muted-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-contact .social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-form .form-group label {
    display: block;
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="tel"],
.contact-form .form-group textarea,
.contact-form .form-group select {
    width: calc(100% - 40px); /* Ajuste para el icono */
    padding: 12px 15px 12px 40px; /* Espacio para el icono */
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus,
.contact-form .form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.3);
    outline: none;
}

.contact-form .form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(calc(-50% + 5px)); /* Ajuste para centrar verticalmente con padding */
    color: var(--muted-text);
    font-size: 0.9rem;
}
.contact-form .form-group label + input,
.contact-form .form-group label + textarea,
.contact-form .form-group label + .select-wrapper {
    margin-top: 0; /* Asegurarse de que no haya margen extra aquí */
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .select-wrapper {
    position: relative;
    width: 100%;
}

.contact-form .select-wrapper select {
    appearance: none; /* Ocultar el icono de flecha nativo */
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px; /* Espacio para la flecha custom */
    width: 100%; /* Asegurar que ocupe todo el ancho del wrapper */
}

.contact-form .select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-text);
    pointer-events: none; /* Permite clics a través del icono */
    font-size: 0.8rem;
}

.contact-form .form-consent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form .form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    background-color: var(--dark-bg);
    appearance: none;
    -webkit-appearance: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.contact-form .form-consent input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form .form-consent input[type="checkbox"]:checked::after {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact-form .form-consent label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--muted-text);
    cursor: pointer;
}

.contact-form .form-consent label a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-form .submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 15px;
}

.contact-form .required-asterisk {
    color: #ff4d4d;
    margin-left: 5px;
}

.contact-form .error-message {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.status-message.success {
    background-color: #28a74533;
    color: #28a745;
    border: 1px solid #28a745;
}

.status-message.error {
    background-color: #dc354533;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.map-container {
    width: 100%;
    height: 450px;
    margin-top: 80px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* --- Footer --- */
.main-footer {
    background-color: #0d1117;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about {
    grid-column: span 1; /* Ocupa una columna en desktop */
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(37, 117, 252, 0.4)); /* Resplandor al logo */
}

.footer-description {
    font-size: 0.95rem;
    color: var(--muted-text);
    margin-bottom: 30px;
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--light-text);
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--muted-text);
    opacity: 0.7;
}

.newsletter-form button {
    background: var(--gradient-hero);
    border: none;
    padding: 12px 20px;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.newsletter-form button:hover {
    opacity: 0.9;
    transform: translateX(3px);
}

.newsletter-status {
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
    color: var(--muted-text);
}

.footer-nav h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
}

.footer-nav h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: var(--gradient-text);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--muted-text);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin: 0;
}

.footer-social-bottom {
    display: flex;
    gap: 15px;
}

.footer-social-bottom a {
    font-size: 1.2rem;
    color: var(--muted-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-bottom a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.footer-back-to-top {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.btn-scroll-top {
    background: var(--gradient-hero);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* Inicialmente oculto, JS lo mostrará */
    pointer-events: none; /* No interactuable hasta que sea visible */
}

.btn-scroll-top.show {
    opacity: 1;
    pointer-events: auto;
}

.btn-scroll-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), var(--glow-effect);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .nav-links { gap: 20px; }
}

@media (max-width: 768px) {
    .company-name { font-size: 1.4rem; }
    .menu-icon { display: block; }
    .nav {
        display: none; /* Ocultar por defecto */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-bg);
        border-left: 1px solid var(--border-color);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        padding: 80px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
        overflow-y: auto;
    }
    .menu-toggle:checked ~ .nav {
        display: flex;
        transform: translateX(0);
    }
    .nav-links {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
        align-items: flex-start;
    }
    .nav-links li a {
        font-size: 1.3rem;
    }
    .language-switcher {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .hero-visual { order: -1; margin-bottom: 40px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { justify-content: center; }

    .section-title { font-size: 2.2rem; }
    .section-description { font-size: 0.95rem; }

    .services-grid, .projects-grid, .vision-values {
        grid-template-columns: 1fr;
    }

    .vision-content-grid {
        flex-direction: column;
    }
    .vision-image-container { margin-top: 40px; }

    .contact-grid {
        flex-direction: column;
    }
    .contact-info .section-header { text-align: center; }
    .contact-details { text-align: center; }
    .contact-item { justify-content: center; text-align: left; flex-direction: column; align-items: center; } /* Center items vertically */
    .contact-item .contact-icon { margin-bottom: 10px; }
    .social-links-contact { justify-content: center; }
    .contact-form-container { padding: 30px 20px; }
    .map-container { height: 300px; margin-top: 50px; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about { order: -1; } /* Mueve el "about" al principio en móviles */
    .footer-logo { text-align: center; }
    .footer-newsletter { text-align: center; }
    .newsletter-form { max-width: 300px; margin: 0 auto; }
    .footer-nav h4:after { left: 50%; transform: translateX(-50%); }
    .footer-nav ul { align-items: center; display: flex; flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-social-bottom { margin-top: 20px; }
    .footer-back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .filter-btn { padding: 8px 18px; font-size: 0.9rem; }
}