:root {
    --primary-color: #2488a8;
    --secondary-color: #1a637a;
    --accent-glow: rgba(36, 136, 168, 0.6);
    --bg-light: #ffffff;
    --bg-alt: #f4f9f9;
    --text-dark: #2c3e50;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .nav-link, .navbar-brand {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

/* Estilo base para el texto */
.texto-blanco-opacidad {
    color: #ffffff; /* Define el color del texto como blanco */
    opacity: 1; /* Opacidad al 100% por defecto */
    transition: opacity 0.3s ease-in-out; /* Crea una animación fluida de 0.3 segundos */
}

/* Efecto al hacer hover (pasar el cursor) */
.texto-blanco-opacidad:hover {
    color: #ffffff; /* Define el color del texto como blanco */
    opacity: 0.6; /* Reduce la opacidad al 80% */
}

/* Glassmorphism Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(36, 136, 168, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px var(--accent-glow);
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

/* Carousel Futurista */
#heroCarousel {
    margin-top: 86px; /* Offset for fixed navbar */
}

.carousel-item {
    height: 80vh;
    min-height: 500px;
    background-color: #000;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.5;
    transition: transform 10s ease;
}

.carousel-item.active img {
    transform: scale(1.05);
}

.carousel-caption {
    bottom: 30%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(36, 136, 168, 0.3);
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 1s forwards 0.5s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px var(--primary-color);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

/* Secciones Generales */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Nosotros */
.nosotros-bg {
    background: var(--bg-alt);
}

.image-box {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.image-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--accent-glow);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-box:hover img {
    transform: scale(1.1);
}

.image-box-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(36, 136, 168, 0.9), rgba(36, 136, 168, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

.image-box-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.mvv-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    text-align: center;
}

.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.mvv-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* PDF Viewer */
.pdf-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid var(--primary-color);
    position: relative;
}

.pdf-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 20px var(--accent-glow);
    pointer-events: none;
}

/* Servicios */
.servicio-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(36, 136, 168, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(36, 136, 168, 0.1) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.servicio-card:hover::before {
    transform: scale(1);
}

.servicio-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px var(--accent-glow);
}

.servicio-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.servicio-card:hover i {
    transform: scale(1.2);
}

/* Contacto */
.form-control {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(36, 136, 168, 0.3);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 15px var(--accent-glow);
    border-color: var(--primary-color);
    background: white;
}

.btn-futuristic {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-futuristic::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-futuristic:hover::before {
    left: 0;
}

.btn-futuristic:hover {
    color: white;
    box-shadow: 0 0 20px var(--primary-color);
    transform: scale(1.05);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(36, 136, 168, 0.2);
}

/* Footer */
footer {
    background: #112d36;
    color: white;
    padding: 50px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 15px var(--primary-color);
}

.footer-social a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* WhatsApp Flotante */
.wa-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.wa-label {
    background: white;
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-right: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #25D366;
}

.wa-label.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.wa-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.wa-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: pulse 2s infinite;
}

.wa-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 0 25px #25D366;
}

.caja-con-fondo {
    /* Esta es la propiedad mágica: cubre el 100% del contenedor sin distorsionar la imagen */
    background-size: cover; 
    
    /* Centra la imagen para que al recortarse se enfoque en el medio */
    background-position: center center; 
    
    /* Evita que la imagen se repita si el contenedor es muy grande */
    background-repeat: no-repeat; 
    cursor: pointer;
}

.contenedor-con-pleca1 {
    /* Define la imagen de la pleca como fondo. Ajusta la ruta si es necesario */
    background-image: url('../imagenes/elementos-graficos/PLECA1.png');
    
    /* Posiciona la imagen exactamente en la esquina inferior izquierda */
    background-position: bottom left;
    
    /* Evita que la onda se repita por todo el contenedor */
    background-repeat: no-repeat;
    
    /* Controla el tamaño de la pleca. Puedes ajustarlo a 'contain', '300px', o un porcentaje */
    background-size: 25%; 
}

.contenedor-con-pleca2 {
    /* Define la imagen de la pleca como fondo. Ajusta la ruta si es necesario */
    background-image: url('../imagenes/elementos-graficos/PLECA2.png');
    
    /* Posiciona la imagen exactamente en la esquina inferior izquierda */
    background-position: bottom right;
    
    /* Evita que la onda se repita por todo el contenedor */
    background-repeat: no-repeat;
    
    /* Controla el tamaño de la pleca. Puedes ajustarlo a 'contain', '300px', o un porcentaje */
    background-size: 25%; 
}

/* Contenedor principal */
.caja-con-transparencia {
    position: relative; /* Muy importante para que el fondo se posicione correctamente */
    overflow: hidden; /* Evita que la imagen se salga de los bordes si tiene bordes redondeados */
}

/* La imagen de fondo con transparencia */
.caja-con-transparencia::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Configuración de tu imagen */
    background-image: url('../imagenes/elementos-graficos/FOTO1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Aquí aplicas la transparencia. 
       0.2 significa 20% visible y 80% transparente. 
       Si querías decir que se vea al 80%, cambia el valor a 0.8 */
    opacity: 0.3; 
    
    /* Manda la imagen al fondo, detrás del texto */
    z-index: 1; 
}

/* Contenedor del texto */
.contenido-elementos {
    position: relative; /* Obligatorio para que el texto se superponga a la imagen */
    z-index: 2; /* Debe ser mayor que el z-index de la imagen */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}