@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ==========================================
   1. BASE & RESET STYLES
   ========================================== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
.cabecera {
    background-color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cabecera-logo {
    width: 250px;
    height: 40px;
    background-image: url('./imagenes/logo_texto.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    cursor: pointer;
    display: inline-block;
}

.menu {
    display: flex;
    gap: 2.5rem;
}

.menu-item {
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.menu-item:hover {
    color: #cccccc;
}

/* ==========================================
   3. GENERAL PAGE LAYOUT COMPONENTS
   ========================================== */
.seccion-contenedor {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.titulo-pagina {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.titulo-pagina--compacto {
    margin-bottom: 1rem;
}

/* ==========================================
   4. HOME PAGE (BANNER & ABOUT US)
   ========================================== */
.banner {
    position: relative;
    background-image: url('./imagenes/fondo.png');
    background-size: cover;
    background-position: center;
    height: calc(100vh - 89px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.banner-logo {
    width: 600px;
    height: 600px;
    background-image: url('./imagenes/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.informacion {
    display: flex;
    justify-content: space-between;
    padding: 4rem 10%;
    background-color: #000000;
    max-width: 1200px;
    margin: 0 auto;
}

.columna {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.col-izquierda {
    padding-right: 3rem;
}

.col-derecha {
    padding-left: 3rem;
}

.divisor {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    align-self: stretch;
}

.titulo-seccion {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.texto-seccion {
    font-size: 1.1rem;
    line-height: 2.0;
    text-align: justify;
    color: #dddddd;
}

.info-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.info-linea {
    display: flex;
    gap: 0.5rem;
    line-height: 1.4;
}

.negrita {
    font-weight: 700;
    white-space: nowrap;
    color: #ffffff;
    text-decoration: none;
}

.texto-normal {
    color: #dddddd;
}

.info-detalle {
    color: #dddddd;
    line-height: 1.4;
}

.mapa-contenedor {
    width: 100%;
    max-width: 320px;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    margin: 1.5rem auto 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================
   5. 3D CAROUSEL (HOME PAGE)
   ========================================== */
.bloque-carrusel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
}

.carousel-3d {
    position: relative;
    width: 100%;
    max-width: 1500px;
    height: 560px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.carousel-3d-item {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: scale(0.5) translateX(0);
    z-index: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.carousel-3d-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay-3d {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: background 0.8s ease;
    z-index: 2;
    pointer-events: none;
}

.carousel-3d-item.active {
    opacity: 1;
    transform: scale(1.15) translateX(0);
    z-index: 10;
}

.carousel-3d-item.active .overlay-3d {
    background: rgba(0, 0, 0, 0.35);
}

.carousel-3d-item.next {
    opacity: 0.6;
    transform: scale(0.85) translateX(330px);
    z-index: 5;
}

.carousel-3d-item.prev {
    opacity: 0.6;
    transform: scale(0.85) translateX(-330px);
    z-index: 5;
}

/* ==========================================
   6. SERVICES PAGE (TABLES & BLOCKS)
   ========================================== */
.servicios-bloque {
    margin-bottom: 3rem;
}

.servicios-bloque h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.tabla-servicios {
    width: 100%;
    border-collapse: collapse;
    background-color: #0b0b0b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tabla-servicios th {
    background-color: #121212;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tabla-servicios td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #dddddd;
    font-size: 1.05rem;
    transition: background-color 0.3s ease;
}

.tabla-servicios tr:last-child td {
    border-bottom: none;
}

.tabla-servicios tr {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tabla-servicios tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

.tabla-servicios td:first-child {
    font-weight: 700;
    color: #ffffff;
}

.tabla-servicios td:last-child,
.tabla-servicios th:last-child {
    width: 100px;
    text-align: right;
    font-weight: 700;
    color: #d4af37;
}

.tabla-servicios th:last-child {
    color: #ffffff;
}

/* ==========================================
   7. PRODUCTS PAGE (GRID & CARDS)
   ========================================== */
.productos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.producto-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.producto-imagen {
    width: 180px;
    height: 180px;
    background-color: #ffffff;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 1rem;
}

.producto-imagen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.producto-imagen-indola img {
    transform: scale(1.35);
}

.producto-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.producto-nombre {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    max-width: 180px;
    margin: 0;
}

.producto-precio {
    color: #d4af37;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

/* ==========================================
   8. BONO DE AFILIADO PAGE
   ========================================== */
.bono-seccion {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
}

.bono-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 600px;
}

.bono-imagen {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.bono-imagen:hover {
    transform: scale(1.02);
}

.bono-mensaje {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
   9. PIE DE PÁGINA (FOOTER)
   ========================================== */
.pie-pagina {
    background-color: #0b0b0b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    margin-top: 5rem;
    text-align: center;
}

.pie-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pie-marca {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
}

.pie-copyright {
    font-size: 0.85rem;
    color: #888888;
    letter-spacing: 0.5px;
}

/* ==========================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 768px) {

    /* ---- Header & Navigation ---- */
    .cabecera {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .cabecera-logo {
        width: 180px;
        height: 32px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem 1rem;
    }

    .menu-item {
        font-size: 0.9rem;
    }

    /* ---- Banner ---- */
    .banner {
        height: 55vh;
    }

    .banner-logo {
        width: 220px;
        height: 220px;
    }

    /* ---- Page Titles ---- */
    .titulo-pagina {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .titulo-seccion {
        font-size: 1.5rem;
    }

    /* ---- About / Info Section ---- */
    .informacion {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        gap: 2.5rem;
    }

    .col-izquierda,
    .col-derecha {
        padding: 0;
    }

    .divisor {
        display: none;
    }

    .texto-seccion {
        font-size: 1rem;
        line-height: 1.8;
    }

    .info-linea {
        flex-wrap: wrap;
    }

    /* ---- Map ---- */
    .mapa-contenedor {
        max-width: 100%;
        height: 200px;
        transform: none !important;
    }

    .mapa-contenedor iframe {
        width: 100% !important;
        height: 100% !important;
    }

    /* ---- 3D Carousel ---- */
    .bloque-carrusel {
        padding: 1.5rem 0;
    }

    .carousel-3d {
        height: 300px;
    }

    .carousel-3d-item {
        width: 250px;
        height: 250px;
    }

    .carousel-3d-item.active {
        transform: scale(1.05) translateX(0);
    }

    .carousel-3d-item.next {
        opacity: 0.5;
        transform: scale(0.75) translateX(180px);
    }

    .carousel-3d-item.prev {
        opacity: 0.5;
        transform: scale(0.75) translateX(-180px);
    }

    /* ---- Services Tables ---- */
    .seccion-contenedor {
        padding: 0 1.25rem;
        margin: 2.5rem auto;
    }

    .servicios-bloque h2 {
        font-size: 1.3rem;
    }

    /* ---- Services Tables ---- */
    .tabla-servicios {
        border-radius: 10px;
    }

    .tabla-servicios th {
        padding: 0.9rem 1rem;
        font-size: 0.8rem;
    }

    .tabla-servicios td {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .tabla-servicios td:last-child,
    .tabla-servicios th:last-child {
        width: 60px;
    }

    /* ---- Products Grid ---- */
    .productos-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .producto-imagen {
        width: 160px;
        height: 160px;
    }

    /* ---- Bono Page ---- */
    .bono-seccion {
        min-height: auto;
        padding: 2rem 0;
    }

    .bono-contenido {
        padding: 0 1rem;
    }

    .bono-imagen {
        max-width: 90%;
    }

    .bono-mensaje {
        font-size: 1.2rem;
    }

    /* ---- Footer ---- */
    .pie-pagina {
        padding: 2rem 1.25rem;
        margin-top: 3rem;
    }

    .pie-marca {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .pie-copyright {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {

    /* Extra small screens */
    .menu {
        gap: 0.4rem 0.8rem;
    }

    .menu-item {
        font-size: 0.8rem;
    }

    .banner {
        height: 45vh;
    }

    .banner-logo {
        width: 170px;
        height: 170px;
    }

    .carousel-3d {
        height: 240px;
    }

    .carousel-3d-item {
        width: 200px;
        height: 200px;
    }

    .carousel-3d-item.next {
        transform: scale(0.7) translateX(140px);
    }

    .carousel-3d-item.prev {
        transform: scale(0.7) translateX(-140px);
    }

    .titulo-pagina {
        font-size: 1.35rem;
    }
}