/* ========================================================================================================================
                                                    SECCIÓN INICIO (HERO PARALLAX)
   ======================================================================================================================== */
.hero-parallax {
    height: 65vh; 
    /* Imagen de fondo */
       background: linear-gradient(rgba(0, 0, 0, 0.249), rgba(0, 0, 0, 0.244)), 
                url('https://res.cloudinary.com/djeqw1kqi/image/upload/q_auto/f_auto/v1779266800/background-parallax_xggiiz.png') no-repeat center 48% / cover fixed;
    /* Centrado del texto */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: white;
    padding-left: 10%;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    border-left: 4px solid var(--color-logo-light); 
    padding: 10px 0 10px 30px;
}
.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #e0e0e0;
}

/*========================================================================== 
  Botón Parallax 
==========================================================================*/
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 8px 25px;
    background: transparent;
    color: var(--color-logo-light);
    border: 1px solid var(--color-logo-light);
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}
/* Icono SVG */
.btn-primary svg {
    width: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}
.btn-primary:hover { gap: 15px; }
.btn-primary:hover svg {
    width: 20px;
    opacity: 1;
    transform: translateX(0);
}
.btn-primary span { transition: transform 0.4s ease; }
.btn-primary:hover span { transform: translateX(2px); }
/* Inicialmente los ocultamos para que la animación los "despierte" */
.hero-content h1, .hero-content p, .hero-content .btn-primary {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
/* Retrasos para crear la cascada */
.hero-content h1 { animation-delay: 0.3s; }
.hero-content p { animation-delay: 0.6s; }
.hero-content .btn-primary { animation-delay: 0.9s; }
/* Definimos el movimiento: empieza invisible y 30px más abajo */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================================================================================================
                                                SECCIÓN CARRUSEL PROYECTOS
   ======================================================================================================================== */
.projects-slider {
    padding: 80px 10%;
    background-color: #f9f9f9;
}
.slider-intro {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
/*========================================================================== 
  Texto principal de la sección "Proyectos destacados"
==========================================================================*/
.bg-text-decor {
    font-size: clamp(25px, 7vw, 100px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: clamp(4px, 1.5vw, 15px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(70, 93, 99, 0.3);
    line-height: 0.95;
    user-select: none;
}
.descripcion-intro {
    font-size: 1.1rem;
    color: var(--footer-text);
    max-width: 600px;
    line-height: 1.8;
    margin-top: 50px;
}
.descripcion-intro::after {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--nav-accent);
    margin: 30px auto 0;
    opacity: 0.5;
}
/*========================================================================== 
  El "marco" por donde vemos las fotos
==========================================================================*/
.slider-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    width: 100%;
    min-height: 450px;
    order: 1;
}
.slide {
    grid-area: 1 / 1;
    display: none !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}
.slide.active {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto; 
}
.slide-img-container {
    flex: 1 1 500px;
    min-width: 300px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
}
.slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}
/*========================================================================== 
  Container de detalles técnicos de cada proyecto
==========================================================================*/
.slide-info {
    flex: 1 1 400px;
    min-width: 300px;
    margin-top: 0 !important;
}
.slide-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}
.slide-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px !important;
    border-left: 3px solid var(--color-logo-dark);
    padding-left: 20px;
} 
/*Bloque de detalles técnicos*/
.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px 40px;
    border-top: 1px solid #eee;
    padding: 25px 0;
    margin: 20px 0;
}
.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.detail-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 4px;
}
.detail-item .value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-logo-dark);
    line-height: 1.3;
    word-break: break-word;
}
/*Boton de cada proyecto*/
.btn-slider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid var(--color-logo-dark);
    color: var(--color-logo-dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border-radius: 5px;
    cursor: pointer;
}
.btn-slider:hover {
    background-color: var(--color-logo-dark);
    color: white;
    transform: translateY(-3px);
}

/* ==========================================================================
   CONTROLES (Flecha - Puntos - Flecha)
   ========================================================================== */
.slider-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; 
    width: 100%;             
    margin-top: 30px;
    gap: 25px;   
}
/* Reseto de flechas y puntos */
.prev, .next, .slider-dots {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
}
.slider-dots {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: auto;
}
.prev, .next {
    background: transparent;
    color: var(--color-logo-dark);
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: 0.3s ease;
}
.prev:hover, .next:hover {
    color: var(--color-logo-light);
    transform: scale(1.2);
}
/* Puntos */
.slider-dots {
    gap: 12px;
}
.dot {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: block; /* Asegura que se vean como circulitos */
}
.dot.active {
    background-color: var(--color-logo-dark);
    transform: scale(1.3);
}

/* ========================================================================================================================
                                                        MEDIA QUERY
   ======================================================================================================================== */
/*===============================================================================================================
                                            Pantallas menores a 750 
===============================================================================================================*/
@media (max-width: 800px){
    .hero-content h1 { font-size: 2.5rem; }
}
@media (max-width: 750px) {
    body{ padding-top: 80px; }
    /* ==========================================================================
       Sección Parallax
    ========================================================================== */
    .hero-parallax {
        background-attachment: scroll;
        height: 40vh;
        justify-content: center;
        text-align: center;
        padding: 0 10%; 
    }
    .hero-content {
        border-left: none;
        padding: 0;
    }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 0.8rem; }
    .btn-primary {
        padding: 10px 25px;
    }
    /* ==========================================================================
       Sección Carrusel
    ========================================================================== */
    /*Texto principal de la sección "Proyectos destacados"*/
    .bg-text-decor {
        font-size: clamp(40px, 9vw, 75px); 
        letter-spacing: 5px;
        top: 40%;
        width: 100%;
    }
    .descripcion-intro {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 5%;
        max-width: 100%;
        margin-top: 30px;
    }
    /*Texto principal de la sección "Proyectos destacados"*/
    .projects-slider {
        padding: 40px 5%;
    }
    .slider-intro{
        margin-bottom: 20px;
    }
    .slide.active {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }
    .slide-img-container {
        height: 250px;
        width: 100%;
        flex: none;
    }
    .slide img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    .slide-info {
        flex: none;
        width: 100%;
        margin-top: 20px !important;
    }
    .slide-info h3{ font-size: 1.3rem; }
    .slide-description{ font-size: 0.9rem; }
    .project-details {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        border-top: 1px solid #d5d4d4;
        margin-bottom: 0;
        
    }
    .detail-item {
        align-items: flex-start;
        text-align: center;
    }
    .detail-item:nth-child(2) {
        grid-column: span 2;
    }
    .btn-slider{
        padding: 10px;
    }

}