/* ========================================
   DIXIT S.A. de C.V. - HOJA DE ESTILO OFICIAL
   ======================================== */

/* ========================================
   1. RESET / CONFIGURACIÓN GENERAL
   ======================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

:root{
    /* Colores Principales */
    --blue:#00AEEF;    /* Cian */
    --purple:#A100FF;  /* Morado/Fucsia */
    --orange:#FF6A00;  /* Naranja */
    --yellow:#FFC300;  /* Amarillo */

    /* Colores de Fondo y Texto */
    --bg:#050505;      /* Negro Profundo */
    --card:#111111;    /* Negro Card */
    --white:#FFFFFF;   /* Blanco Puro */
}

/* ========================================
   2. BODY
   ======================================== */
body{
    font-family:'Segoe UI', sans-serif;
    background:var(--bg);
    /* Texto claro sobre fondo oscuro */
    color:var(--white);
    overflow-x:hidden;
}

/* ========================================
   3. HEADER (Navegación Fija)
   ======================================== */
header{
    position:fixed;
    top:0;
    width:100%;
    padding:.5rem 5%;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(15px);
    z-index:1000;
    border-bottom:1px solid rgba(0,0,0,.05);
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.header-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:1400px;
    margin:auto;
    height:60px;
}

/* LOGO */
.logo-img{
    height:45px;
    width:auto;
    display:block; 
}

/* NAV */
nav{
    margin-left:auto;
}

nav ul{
    display:flex;
    gap:2.5rem; 
    list-style:none;
    align-items:center;
    height:100%;
}

nav a{
    color:black !important;
    text-decoration:none;
    font-weight:600;
    transition: color 0.3s;
}

nav a:hover{
    color:var(--blue);
}

/* ========================================
   4. HERO SECTION (Video de Fondo)
   ======================================== */
.hero{
    height:100vh;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    overflow:hidden;
}

.hero video{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:brightness(.25);
    z-index:1;
}

.hero-content{
    position:relative;
    z-index:2;
    padding:2rem;
}

.hero h1{
    font-size:4rem;
    background:linear-gradient(90deg, var(--blue), var(--purple), var(--orange));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero p{
    font-size:1.2rem;
    color:var(--white);
    margin-top:1rem;
}

.hero-btn{
    display:inline-block;
    margin-top:2rem;
    padding:1rem 2rem;
    background:var(--blue);
    border-radius:50px;
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* ========================================
   5. SECCIONES GENERALES
   ======================================== */
.section{
    padding:6rem 5%;
    max-width:1400px;
    margin:auto;
}

.section-title{
    text-align:center;
    font-size:2.7rem;
    margin-bottom:3rem;
    background:linear-gradient(90deg, var(--blue), var(--purple), var(--orange));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* === GRIDS Y CARDS === */
.grid-2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:2rem;
}

.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2rem;
}

.card{
    background:var(--card);
    padding:2rem;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.3);
    /* Unificado: transición para hover */
    transition: transform .3s ease, box-shadow .3s ease, border-color 0.3s;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 40px rgba(0,0,0,.4),
               0 0 15px rgba(0,174,239,.4);
    border:1px solid var(--blue);

}

.card h3{
    color:var(--blue);
    margin-bottom:1rem;
}

.card p,
.card li{
    color:var(--white);
    line-height:1.8;
}

/* IMAGEN ABOUT */
.about-img{
    width:100%;
    height:100%;
    min-height:350px;
    object-fit:cover;
    border-radius:20px;
	
}
.about-img {
    transition: transform .4s ease, filter .4s ease;
}

.about-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}
/* ========================================
   6. COMERCIALIZADORA: NUEVO ACORDION
   ======================================== */
.services-full-width {
    width: 100vw; 
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.service-card {
    width: 100%;
    border: none;
    border-radius: 0;
    margin-bottom: 2px; 
    cursor: pointer;
    transition: filter 0.3s ease;
}

.service-card:hover {
    filter: brightness(1.2);
}

/* Estilo del Título (Summary) */
.service-card summary {
    list-style: none;
    padding: 1.2rem 1rem; 
    text-align: center;
    font-size: 1.3rem;   
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    outline: none;
}

/* Ocultar marcador por defecto */
.service-card summary::-webkit-details-marker {
    display: none;
}

/* --- COLORES DEL ACORDION (Gradientes suaves) --- */
.blue-card summary { 
    background: linear-gradient(90deg, #0a0a0a 0%, #004a66 50%, #0a0a0a 100%); 
}

.purple-card summary { 
    background: linear-gradient(90deg, #0a0a0a 0%, #4a0075 50%, #0a0a0a 100%); 
}

.orange-card summary { 
    background: linear-gradient(90deg, #0a0a0a 0%, #7a3300 50%, #0a0a0a 100%); 
}

/* Contenido desplegado */
.service-card p {
    padding: 0;
    background: none;
    text-align: left;
}

/* === PAQUETES DE SERVICIOS === */
.grid-paquetes{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:2rem;
}

.paquete-card{
    position:relative;
    display: flex;
    flex-direction: column;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 40px rgba(0,0,0,.4),
               0 0 15px rgba(0,174,239,.4);
    border:1px solid var(--blue);
}

.paquete-sub{
    color:#aaa;
    margin-bottom:1rem;
    font-size:.95rem;
    font-style: italic;
}

.paquete-card ul{
    margin-top:1rem;
    padding-left:1rem;
    flex-grow: 1;
}

.paquete-card li{
    margin-bottom:.5rem;
    font-size:.95rem;
}

/* BADGE */
.badge{
    position:absolute;
    top:-10px; 
    right:15px;
    background:linear-gradient(90deg, var(--blue), var(--purple));
    padding:.3rem .7rem;
    font-size:.7rem;
    border-radius:10px;
    font-weight:bold;
    color: white;
}

/* ========================================
   7. TABLA COMPARATIVA
   ======================================== */
.table-container{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    margin-top:2rem;
    background:var(--card);
    border-radius:15px;
    overflow:hidden;
    min-width: 600px;
}

th{
    background:var(--blue);
    color:white;
    padding:1rem;
    text-transform: uppercase;
    font-weight: bold;
}

td{
    padding:1rem;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.08);
    color:var(--white);
}

/* ========================================
   8. CONTACTO
   ======================================== */
.contact-grid{
    display:grid;
    grid-template-columns:1fr 2fr;
    gap:2rem;
}

input,
textarea,
select{
    width:100%;
    padding:1rem;
    margin-top:.5rem;
    margin-bottom:1rem;
    background:var(--card);
    border:1px solid #333;
    border-radius:10px;
    color:var(--white);
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--blue);
}

button{
    width:100%;
    padding:1rem;
    background:var(--gradient);
    border:none;
    border-radius:10px;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover{
    transform:translateY(-2px) scale(1.02);
    box-shadow:0 10px 25px rgba(0,174,239,.4);
}

/* ========================================
   9. FOOTER
   ======================================== */
footer{
    background:#000;
    padding:3rem;
    text-align:center;
    color:#777;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ========================================
   10. ANIMACIONES Y EFECTOS (JS)
   ======================================== */

.fade-left{
    opacity:0;
    transform:translateX(-60px);
    transition:opacity .8s ease, transform .8s ease;
}

.fade-right{
    opacity:0;
    transform:translateX(60px);
    transition:opacity .8s ease, transform .8s ease;
}

.fade-in{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .8s ease, transform .8s ease;
}


.show{
    opacity:1; 
    transform:translateX(0) translateY(0);
}

/* DELAY PARA ANIMACIONES */
.fade-in:nth-child(1){ transition-delay: .1s; }
.fade-in:nth-child(2){ transition-delay: .2s; }
.fade-in:nth-child(3){ transition-delay: .3s; }
.fade-in:nth-child(4){ transition-delay: .4s; }

.exp-card {
    flex: 1;
    max-width: 350px;
    border-radius: 15px;
    overflow: hidden;
}

.exp-card img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    display: block;
}

/* ========================================
   11. RESPONSIVE (MÓVILES)
   ======================================== */
@media(max-width:900px){

    .grid-2,
    .grid-3,
    .services-full-width,
    .contact-grid{
        grid-template-columns:1fr;
    }

    nav{
        display:none;
    }

    .hero h1{
        font-size:2.5rem;
    }
    
    .section{
        padding:4rem 5%;
    }
}
/* ========================================
   SECCIÓN GALERÍA - REGLAS PROPIAS
   ======================================== */
.section-gallery {
    padding: 6rem 5%;
    background: #050505; /* Fondo oscuro independiente */
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 250px; /
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}


.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.2);
    border-color: var(--blue);
}

.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    .gallery-item {
        height: 200px;
    }
}
.accordion-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem 4rem;
}

.accordion-body.reverse {
    direction: rtl;
}

.accordion-body.reverse .accordion-text,
.accordion-body.reverse .accordion-img {
    direction: ltr;
}

.accordion-text {
    padding: 2rem 2.5rem;
    max-width: 600px;
}

.accordion-text p {
    text-align: justify;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 1rem;
}

.accordion-img {
    padding: 1.5rem;
}

.accordion-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    transition: 0.3s ease;
}

.accordion-img img:hover {
    transform: scale(1.03);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .accordion-body {
        grid-template-columns: 1fr;
        padding: 1rem 1.5rem;
    }

    .accordion-body.reverse {
        direction: ltr;
    }
}
.nota-importante {
    text-align: justify;
}

.menu-toggle{
    display:none;
    font-size:2rem;
    cursor:pointer;
}
}
.header-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 20px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ================================
   MENÚ HAMBURGUESA FUNCIONAL
================================ */

.menu-toggle{
    display:none;
    font-size:2rem;
    cursor:pointer;
}

/* MOBILE */
@media(max-width:900px){

    /* BOTÓN */
    .menu-toggle{
        display:block;
        color:black;
        z-index:9999;
    }

    /* NAV */
    nav{
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:white;
        display:none;
        flex-direction:column;
        text-align:center;
        padding:1rem 0;
    }

    nav.active{
        display:flex;
    }

    nav ul{
        flex-direction:column;
        gap:1rem;
    }

    /* FIX SCROLL LATERAL */
    html, body{
        overflow-x:hidden;
    }

    /* FIX FULL WIDTH */
    .services-full-width{
        width:100% !important;
        left:0 !important;
        margin-left:0 !important;
        margin-right:0 !important;
    }

    /* HEADER AJUSTE */
    .header-content{
        padding: 0 1rem;
    }
}