/* GENERAL */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-image: url("../images/Posible_fondo.jpg"); /* CAMBIA ESTA IMAGEN */
    background-attachment: fixed !important;
    /* ELIMINAR TODO ESTO:
    background-image: url("../images/Posible_fondo.jpg") !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-attachment: fixed !important;
    */
}

/* ====================== */
/* HERO / INICIO */
/* ====================== */

/* ===================================== */
/* HEADER */
/* ===================================== */

.header {
    width: 98%;
    position: absolute; /* Flota sobre la imagen */
    top: 0;
    left: 0;
    z-index: 10;
    padding: 15px 30px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.header-logo img {
    width: 100px;
    height: auto;
}

/* MENÚ */
.header-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav a {
    color: white;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.header-nav a:hover {
    color: #ff0000;
}

/* BOTÓN DEL MENÚ */
.btn-menu {
    background: #b60707;
    padding: 8px 18px;
    border-radius: 20px;
}

.btn-menu:hover {
    background: #ffffff;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Pantalla completa */
    background-image: url("../images/Fondo_inicio.jpg"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translateY(var(--scroll, 0));
    transition: transform 0.1s linear;
}

/* Capa oscura encima */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
}

/* Logo */
.hero-logo {
    width: 500px;
    max-width: 80%;
    margin-bottom: 20px;
}

/* Texto principal */
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 10px 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 25px;
    color: white;
}

/* Botón */
.hero-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #00c57c;
    color: #fff;
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background: #00a96a;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    min-height: 450px;
    background-color: white;
}

.mision-vision {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    padding: 80px 40px;
    background-color: #fd7d7d; 
    text-align: center;
    flex-wrap: wrap; /* importante para móviles */
}

.mv-item {
    width: 300px;
}

.mv-icon {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
}

.mision-vision h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.mision-vision p,
.mision-vision ul {
    font-size: 1rem;
    color: #000000;
    line-height: 1.6rem;
}

/* Lista de valores */
.mision-vision ul {
    list-style: none;
    padding: 0;
}
.mision-vision li {
    margin-bottom: 8px;
}


.hero-section p, h2 {
    color: rgb(0, 0, 0);
}

.hero-left,
.hero-right {
    flex: 1;
}

.video-hero {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.servicios-section {
    position: relative;
    padding: 30px 0 !important;
    background-attachment: fixed !important;
    background-size: cover;
    background-position: center;
}

/* Capa negra encima del fondo */
.servicios-section::before {
    content: "";
    position: absolute;
    inset: 0;                   /* top:0; left:0; width:100%; height:100%; */
    background-color: rgba(0, 0, 0, 0.55);  /* ← Ajusta opacidad */
    z-index: 0;
}

/* Para que el contenido quede arriba del overlay */
.servicios-section > * {
    position: relative;
    z-index: 1;
}

.servicios-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color:#ffffff;
}

.servicios-section p {
    text-align: center;
    color:#ffffff;
}

/* Carrusel */

.mySwiper {
    width: 90%;
    max-width: 1500px;
    margin: auto;
}

.swiper-wrapper {
    display: flex !important;
    align-items: center !important;
}

.swiper-wrapper p, h3 {
    color:rgb(255, 255, 255);
}

.swiper-slide {
    background: rgba(255, 255, 255, 0);
    border-radius: 15px;
    padding: 30px;

    height: 800px; /* ← ESTO LO CENTRA Y BALANCEA */
    width: auto;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide-img {
    width: 100%;
    max-width: 750px;
    height: 620px;
    object-fit: contain; /* No se deforma, no empuja */
    margin-bottom: 15px;
}

/* flechas: evitar que empujen el carrusel */
.swiper-button-prev,
.swiper-button-next {
    position: absolute !important;
    z-index: 50 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: white;
}

.swiper-button-prev {
    left: 10px !important;
}

.swiper-button-next {
    right: 10px !important;
}

/* SECCIÓN DE PROYECTOS */
.proyectos-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.proyectos-section h2 {
    text-align: center;
    color: #000;
    font-size: 2rem;
    margin-bottom: 40px;
}

.proyectos-section-texto {
    text-align: center;
}

/* CONTENEDOR GENERAL */
.proyectos-contenedor {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0 40px;
    flex-wrap: wrap; /* Para que se adapte en pantallas pequeñas */
}

/* TARJETAS */
.proyecto-card {
    background: #ffffff;
    width: 330px;
    text-align: left;
}

.proyecto-card img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 6px;
}

.proyecto-card h3 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 15px;
    color: #000;
}

.proyecto-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5rem;
    margin-top: 10px;
}


/* Footer */
footer {
    background-color: #000000;
    color: white;
    padding: 15px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Añade un espacio entre los enlaces */
    flex-wrap: wrap; /* Permite que los elementos se dispongan en columna cuando sea necesario */
}

.footer-links p {
    margin: 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-links a:hover {
    color: #b60707;
}

footer p {
    font-size: 0.95em;
    margin-top: 5px;
}

/* Enlace de contacto al correo */
footer p a {
    color: white; /* Texto blanco por defecto */
    text-decoration: none; /* Elimina el subrayado */
    transition: color 0.3s ease; /* Efecto suave al cambiar de color */
}

footer p a:hover {
    color: #b60707; /* Color azul suave al pasar el cursor (hover) */
}

/* Esta parte es de redes sociales */
.social { 
    margin-block: 24px; 
    text-align: center; 
}
.social h2 {
  font: 700 1.4rem/1.2 system-ui, sans-serif;
  color: #f8e9cf; 
  margin-bottom: 12px;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.social-links a {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;                 /* cuadrado con puntas redondeadas */
  background: #b60707;                /* color de fondo del botón */
  color: #faf9f8;                     /* color del icono */
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: #f3f3f1;
  color: #000;                        /* icono más oscuro al hover */
}

.social-links i {
  font-size: 1.25rem;                 /* tamaño del icono */
}
/* Aquí finaliza la parte de redes sociales */

.fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Cuando entra en pantalla */
.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

::selection {
    background: rgba(255, 255, 0, 0.6); /* amarillo transparente */
    color: #000;
}

::-moz-selection {
    background: #f8d44c;
    color: #000;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        padding: 0 15px;
    }

    .hero-logo {
        width: 250px !important;
    }
}

@media (max-width: 768px) {

    .swiper-slide {
        height: auto !important;
        padding: 20px !important;
    }

    .slide-img {
        max-width: 100%;
        height: 250px !important;
        object-fit: cover !important; 
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none; /* Oculta flechas en móvil */
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh; /* Reduce altura */
        background-position: center top;
    }

    .hero-content {
        padding: 20px 10px;
    }
}

@media (max-width: 768px) {
    .header-nav ul {
        gap: 12px;
    }

    .header-nav a {
        font-size: 0.85rem;
    }

    .header-logo img {
        width: 70px;
    }
}

* {
    box-sizing: border-box;
}

.hero-subtitle,
.proyecto-card p,
.swiper-slide p {
    word-wrap: break-word;
}