/* ==========================================
   ESTILOS GENERALES Y CONFIGURACIÓN BASE
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
    overflow-x: hidden; /* Evita desbordes horizontales en móviles */
}

/* Header Superior Fijo (Sticky) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid #d0d7de;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-container-centered {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Superior */
.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Animaciones de Entrada (Scroll) */
.seccion-animada {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.seccion-animada.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   SECCIÓN HERO / PRESENTACIÓN PRINCIPAL
   ========================================== */
.hero-contacto-section {
    position: relative;
    padding: 60px 15px;
    background: linear-gradient(rgba(13, 17, 23, 0.5), rgba(13, 17, 23, 0.5)), url('media/fondocontacto.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-contacto-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 10px;
}

.hero-text-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    flex: none;
    position: relative;
    z-index: 2;
    padding: 0 10px; /* Evita que el texto toque los bordes laterales en móviles */
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.7);
    word-break: break-word;
}

.highlight-orange {
    color: #f4a261;
}

.desc-highlight {
    font-size: 1.1rem;
    color: #ffb074;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.desc-secondary {
    font-size: 0.95rem;
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.welcome-comites-box {
    background: rgba(17, 27, 33, 0.9);
    border: 1px solid rgba(244,162,97,0.4);
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
    backdrop-filter: blur(5px);
    width: 100%;
}

/* ==========================================
   SECCIÓN COMITÉS Y RESUMEN (DS49)
   ========================================== */
.ds49-section {
    padding: 50px 15px;
    background-color: #0b0f14;
}

.ds49-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center;
}

.ds49-image-wrapper {
    flex: 1;
    width: 100%;
}

.ds49-main-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.ds49-content-wrapper {
    flex: 1;
    width: 100%;
}

.ds49-card {
    background: #161b22;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.ds49-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.ds49-desc {
    color: #8b949e;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.ds49-subtitle {
    font-size: 1.05rem;
    color: #f4a261;
    margin-bottom: 10px;
}

.ds49-list {
    list-style-type: disc;
    padding-left: 20px;
    color: #c9d1d9;
    font-size: 0.95rem;
}

.ds49-list li {
    margin-bottom: 8px;
}

/* ==========================================
   SECCIÓN PLANOS / DISPONIBILIDAD Y FLECHAS
   ========================================== */
.planos-section {
    padding: 50px 15px;
    background-color: #111b21;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.planos-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center;
}

.planos-viewer-column {
    flex: 1.2;
    width: 100%;
}

.main-plano-card {
    background: #161b22;
    border-radius: 12px;
    border: 1px solid #30363d;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.plano-tag {
    background-color: #f4a261;
    color: #111b21;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 12px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.img-container {
    position: relative;
    width: 100%;
    height: 320px;
    background-color: #0b0f14;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.img-container img.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(17, 27, 33, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.slider-arrow:hover {
    background-color: #f4a261;
    color: #111b21;
    border-color: #f4a261;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.planos-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    flex: 1;
    min-width: 70px;
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.thumb-item img {
    width: 100%;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.thumb-item span {
    font-size: 0.7rem;
    color: #8b949e;
    margin-top: 3px;
    display: block;
    font-weight: 600;
}

.thumb-item:hover {
    border-color: rgba(244, 162, 97, 0.6);
}

.thumb-item.active {
    border-color: #f4a261;
    background: #1f2c34;
}

.thumb-item.active span {
    color: #f4a261;
}

.planos-info-column {
    flex: 1;
    width: 100%;
}

.planos-info-column h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
}

.planos-desc {
    color: #8b949e;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.planos-desc-secondary {
    color: #8b949e;
    font-size: 0.95rem;
}

/* ==========================================
   SECCIÓN CARRUSEL FOTOGRÁFICO (R1 a R9)
   ========================================== */
.carousel-section {
    padding: 50px 15px;
    background-color: #111b21;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.carousel-container-main {
    max-width: 900px;
    margin: 0 auto;
}

.carousel-header {
    text-align: center;
    margin-bottom: 25px;
}

.carousel-header h2 {
    font-size: 1.7rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.carousel-header p {
    color: #8b949e;
    font-size: 0.95rem;
}

.carousel-card {
    background: #161b22;
    border-radius: 12px;
    border: 1px solid #30363d;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 15px;
}

.carousel-img-container {
    position: relative;
    width: 100%;
    height: 320px;
    background-color: #0b0f14;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.carousel-img-container img.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

.carousel-counter-tag {
    background-color: #f4a261;
    color: #111b21;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 12px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(17, 27, 33, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.carousel-arrow:hover {
    background-color: #f4a261;
    color: #111b21;
    border-color: #f4a261;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #30363d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot:hover {
    background-color: #8b949e;
}

.carousel-dot.active {
    background-color: #f4a261;
    transform: scale(1.2);
}

/* ==========================================
   SECCIÓN VISITA TÉCNICA DE COMITÉS
   ========================================== */
.visita-section {
    padding: 50px 15px;
    background-color: #0b0f14;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.visita-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center;
}

.visita-text-column {
    flex: 1;
    width: 100%;
}

.visita-text-column h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
}

.visita-desc {
    color: #c9d1d9;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.visita-desc-secondary {
    color: #8b949e;
    font-size: 0.92rem;
    line-height: 1.7;
}

.visita-image-column {
    flex: 1.2;
    width: 100%;
}

.visita-img-wrapper {
    background: #161b22;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #30363d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.visita-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================
   SECCIÓN RENDERINGS 360
   ========================================== */
.renderings-section {
    padding: 50px 15px;
    background-color: #0b0f14;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.renderings-container {
    max-width: 1100px;
    margin: 0 auto;
}

.renderings-header {
    text-align: center;
    margin-bottom: 25px;
}

.renderings-header h2 {
    font-size: 1.7rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.renderings-header p {
    color: #8b949e;
    font-size: 0.95rem;
}

.renderings-frame-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background: #161b22;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #30363d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.renderings-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   FOOTER INFORMATIVO CENTRADO
   ========================================== */
.site-footer {
    background-color: #0b0f14;
    border-top: 1px solid #30363d;
    padding: 40px 15px 30px 15px;
}

.footer-container-centered {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo-centered {
    background: transparent;
    padding: 0;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.footer-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-bottom-centered {
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-centered p {
    color: #8b949e;
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================
   MEDIA QUERIES: ADAPTABILIDAD MÓVIL Y TABLET
   ========================================== */
@media (max-width: 900px) {
    .ds49-container,
    .planos-container,
    .visita-container {
        flex-direction: column;
    }

    .main-title {
        font-size: 1.9rem;
    }

    .hero-contacto-section {
        padding: 50px 15px;
    }

    .img-container,
    .carousel-img-container {
        height: 260px;
    }

    .renderings-frame-wrapper {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.6rem;
    }

    .logo-img {
        height: 65px;
    }

    .footer-logo-img {
        height: 75px;
    }

    .img-container,
    .carousel-img-container {
        height: 220px;
    }

    .renderings-frame-wrapper {
        height: 300px;
    }
}