:root {
    --dark-bg: #0a192f;
    --darker-bg: #020817;
    --accent-cyan: #64ffda;
    --accent-blue: #0891b2;
    --text-light: #ccd6f6;
    --text-white: #ffffff;
    --card-bg: rgba(8, 51, 68, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-white);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 20px; }

section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

/* --- Efecto de Burbujas (Global) --- */
.bubbles-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.2) 0%, rgba(100, 255, 218, 0) 70%);
    border-radius: 50%;
    opacity: 0.6;
    animation: bubble-up 20s infinite ease-in;
}

@keyframes bubble-up {
    to {
        transform: translateY(-120vh) rotate(360deg);
    }
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-white);
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-cyan);
}

/* --- Sección Hero (Inicio) --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)), url('imagenes/hero-bg.jpg') no-repeat center center/cover;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    animation: fadeInUp 1.5s ease forwards;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: #cffff2;
    margin-bottom: 1rem;
    text-shadow:
      0 0 24px rgba(18, 227, 194, 0.9),
      0 0 60px rgba(18, 227, 194, 0.4),
      0 0 120px rgba(18, 227, 194, 0.2);
}

.hero p {
    color: #dff;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 18px rgba(0, 255, 220, 0.35);
}

/* --- ESTILOS DEFINITIVOS PARA BOTONES DE INICIO --- */
#inicio .hero-content .cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

#inicio .hero-content .cta-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Botón especial "nuestros Trabajos" */
#inicio .hero-content .cta-buttons .btn-solicitar-trabajos {
    /*padding: 12px 25px;*/
    /*background-color: transparent;*/
    color: var(--text-white);
    /*border: 2px solid var(--accent-cyan);*/
}

#inicio .hero-content .cta-buttons .btn-solicitar-trabajos span {
    background-color: var(--accent-cyan);
    color: var(--darker-bg);
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 4px;
}

#inicio .hero-content .cta-buttons .btn-solicitar-trabajos:hover {
    background-color: var(--accent-cyan);
    color: var(--darker-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.3);
}
#inicio .hero-content .cta-buttons .btn-primary span {
    background-color: var(--accent-cyan);
    color: var(--darker-bg);
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 4px;
}
/* Botón "Solicitar Cotización" */
#inicio .hero-content .cta-buttons .btn-primary {
    /*padding: 14px 28px;*/
    background-color: var(--accent-cyan);
    color: var(--darker-bg);
    border: 2px solid var(--accent-cyan);
}

#inicio .hero-content .cta-buttons .btn-primary:hover {
    background-color: #4cd1b9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.light-rays {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 70%);
    animation: light-move 20s infinite linear;
    pointer-events: none;
}

@keyframes light-move {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Sección Misión --- */
.mision {
    background: linear-gradient(rgba(2, 8, 23, 0.85), rgba(2, 8, 23, 0.85)), 
                url('https://images.unsplash.com/photo-1540206395-68808572332f?q=80&w=2070') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 120px 0;
    text-align: center;
}

.mision .container {
    max-width: 800px;
}

/* --- Separador Visual --- */
.section-divider {
    height: 150px;
    background: linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
    clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 100%);
    margin-top: -1px;
}

/* --- Sección Trabajos Realizados --- */
.trabajos-realizados {
    background: var(--dark-bg);
}

.trabajos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trabajo-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.trabajo-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.1);
}

.trabajo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.trabajo-info {
    padding: 20px;
}

.trabajo-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

/* --- Sección Servicios (Slider 3D Vertical) --- */
.servicios {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
}

.l-realise-slider-card-block {
    position: relative;
    margin: 50px auto;
    width: 400px;
    height: 350px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-perspective: 800px;
    perspective: 800px;
}

.card-block-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 390px;
    height: 247px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(2, 8, 23, 0.98);
    border: 1px solid transparent;
    -webkit-transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    -webkit-transform: translate3d(0px, 20px, -100px) rotateX(5deg);
    transform: translate3d(0px, 20px, -100px) rotateX(5deg);
    opacity: 0;
    box-shadow: none;
}

.card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    filter: invert(1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.card.state-active {
    -webkit-transform: translate3d(0px, 0px, 0px);
    transform: translate3d(0px, 0px, 0px);
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 34, 45, 0.5);
    border-color: var(--accent-cyan);
}

.card.state-active h3 {
    color: var(--text-white);
    font-size: 1.6rem;
}

.card.state-next {
    -webkit-transform: translate3d(70px, -40px, -50px);
    transform: translate3d(70px, -40px, -50px);
    opacity: 0.6;
}

.card.state-previous {
    -webkit-transform: translate3d(-70px, -40px, -50px);
    transform: translate3d(-70px, -40px, -50px);
    opacity: 0.6;
}

.btn-wrap {
    position: absolute;
    z-index: 20;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.btn-wrap .btn {
    display: block;
    width: 12px;
    height: 12px;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    opacity: 0.5;
    border-radius: 50%;
    background-color: var(--text-light);
    cursor: pointer;
}

.btn-wrap .btn.focus {
    width: 16px;
    height:16px;
    -webkit-transform: translate(-2px, -2px);
    transform: translate(-2px, -2px);
    opacity: 1;
    background-color: var(--accent-cyan);
}

/* --- Sección Galería (Carrusel 3D) --- */
.galeria {
    background: var(--darker-bg);
}

.trans3d {
    -webkit-transform-style: preserve-3d;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform-style: preserve-3d;
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform-style:preserve-3d;
    -ms-transform: translate3d(0, 0, 0);
    transform-style:preserve-3d;
    transform: translate3d(0, 0, 0);
}

#contentContainer {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    overflow: hidden;
}

#carouselContainer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.carouselItem {
    width: 320px;
    height: 180px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -160px;
    margin-top: -90px;
    border: 5px solid rgba(100, 255, 218, 0.5);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.carouselItem:hover {
    border-color: var(--accent-cyan);
}

.carouselItemInner {
    width: 100%;
    height: 100%;
    position: absolute;
}

.carouselItemInner img,
.carouselItemInner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-controls button {
    background: var(--card-bg);
    color: var(--text-white);
    border: 1px solid var(--accent-cyan);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.carousel-controls button:hover {
    background: var(--accent-cyan);
    color: var(--darker-bg);
}

/* --- Sección Contacto --- */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 5px;
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: #8892b0;
}

.map-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.1);
}

#map {
    height: 450px;
    width: 100%;
}

.map-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 25, 47, 0.9);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--accent-cyan);
    color: var(--text-white);
    z-index: 1000;
}

.map-info h3 {
    color: var(--accent-cyan);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.map-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    background: var(--darker-bg);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--card-bg);
    position: relative;
    z-index: 1;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    header .container { flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    .contacto-wrapper { grid-template-columns: 1fr; }
    .mision { background-attachment: scroll; }
    .section-divider { height: 80px; }
    .l-realise-slider-card-block {
        width: 300px;
        height: 300px;
    }
    .card {
        width: 290px;
        height: 220px;
    }
}