

.titulo {
    text-align: center;
}

.titulo h3{
    font-size: 42px;
    font-family: 'Cinzel', serif;
    background: radial-gradient(ellipse at center, #3a2a00, #000000 65%);
    font-weight: 400;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}



















/* =========================
   CONTENEDOR PRINCIPAL
========================= */
.apertura {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

/* =========================
   IMAGEN
========================= */
.apertura img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    transition: all 0.4s ease;
}

/* HOVER IMAGEN */
.apertura img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    filter: brightness(1.08);
}

/* =========================
   CONTENEDOR TEXTO (LIMITA ANCHO)
========================= */
.subtitulo,
.frase {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   SUBTÍTULO (DORADO MÁS BRILLANTE)
========================= */
.subtitulo {
    font-family: 'Cinzel', serif;
    font-size: 30px;
    font-weight: 600;
    color: #f5d78f;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* =========================
   FRASE (BLANCO)
========================= */
.frase {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 20px;
    opacity: 0.95;
    font-family: 'Raleway', sans-serif;
}

/* =========================
   BOTÓN BASE
========================= */
.apertura a button {
    background: linear-gradient(135deg, #c9a84c, #e7d3a3, #8a6820);
    font-family: 'Montserrat', sans-serif;
    color: #000;
    border: none;
    padding: 13px 28px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* =========================
   ANIMACIÓN PULSO SUAVE
========================= */
.apertura a button {
    animation: pulso 2s infinite;
}

@keyframes pulso {
    0% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    }
}

/* =========================
   BORDE DINÁMICO (EFECTO PREMIUM)
========================= */
.apertura a button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* =========================
   HOVER BOTÓN
========================= */
.apertura a button:hover {
    background: #1f1f1f;
    color: #FFD700;
    transform: translateY(-2px);
}

.apertura a button:hover::after {
    opacity: 1;
}

















/* =========================
   CONTENEDOR TARJETA
========================= */
.presentacion {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    gap: 25px;

    background: linear-gradient(180deg, #111111, #0d0d0d);
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 16px;
    padding: 25px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* =========================
   HOVER TARJETA (SUTIL)
========================= */
.presentacion:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.4);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(255, 215, 0, 0.25);
}

/* =========================
   LADO IZQUIERDO (CONTENEDOR CUADRADO)
========================= */
.izquierda {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   WRAPPER CUADRADO
========================= */
.izquierda {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* =========================
   IMAGEN RECORTADA (NO DEFORMADA)
========================= */
.izquierda img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 esto recorta sin deformar */
    border-radius: 10px;
    transition: all 0.4s ease;
}

/* =========================
   HOVER IMAGEN
========================= */
.izquierda img:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}

/* =========================
   SEPARADOR CENTRAL
========================= */
.presentacion::before {
    content: "";
    width: 1px;
    height: 70%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 215, 0, 0.4),
        transparent
    );
}

/* =========================
   LADO DERECHO (TEXTO)
========================= */
.derecha {
    flex: 1.2;
    text-align: left;
}

/* =========================
   TÍTULO
========================= */
.derecha h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: #f5d78f;
    margin-bottom: 12px;
    letter-spacing: 1.5px;

    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* =========================
   TEXTO
========================= */
.derecha p {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    opacity: 0.95;
}





























.foto {
    width: 80%;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);

    margin: 40px auto; 
    display: flex;
    justify-content: center;
    align-items: center;

    /* Hover global */
    transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

.foto:hover {
    transform: scale(1.02);
    filter: brightness(1.07);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.25);
}

/* ============================
   MARCO DORADO ANIMADO
   ============================ */
.slider {
    width: 100%;
    height: 100%;
    position: relative;

    border-radius: 18px;
    padding: 3px; /* Para que el borde animado se vea */
    box-sizing: border-box;

    /* Marco dorado animado */
    background: linear-gradient(
        130deg,
        rgba(255, 215, 0, 0.35),
        rgba(255, 215, 0, 0.10),
        rgba(255, 215, 0, 0.35)
    );
    background-size: 400% 400%;
    animation: oroMov 6s ease infinite;
}

@keyframes oroMov {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =====================================
   SLIDE
   ===================================== */
.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 1.2s ease-in-out,
                transform 0.6s ease,
                filter 0.6s ease;
}

/* Slide visible */
.slide.active {
    opacity: 1;
}

/* Hover del slide (cuando pase el cursor por encima del carrusel) */
.foto:hover .slide.active {
    transform: scale(1.03);
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.18);
}

/* Hover directo sobre el slide */
.slide:hover {
    transform: scale(1.04);
    filter: brightness(1.15);
    box-shadow: 0 0 25px rgba(255,255,255,0.25);
}

/* INFO */
.slide .info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-align: right;
    color: #f7d47c;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.slide .info h3 {
    font-family: 'Cinzel', serif; 
    font-size: 2.3rem;
    margin: 0;
    font-weight: 600;
}

.slide .info .container-text {
    width: 100%;
    margin: 0;
    background-color: #000;
}

.slide .info .container-text p {
    font-family: 'Raleway', sans-serif;

    font-size: 1rem;
    color: #ffffff;
}

/* ============================
   CONTROLES
   ============================ */
.controles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px;
    pointer-events: none;
}

/* Controles visuales */
.controles span {
    font-size: 3rem;
    color: #d4af37;
    cursor: pointer;
    user-select: none;

    pointer-events: auto;
    transition: transform 0.35s ease, color 0.35s ease, text-shadow 0.35s ease;
}

/* Hover premium en controles */
.controles span:hover {
    transform: scale(1.25);
    color: #ffe9a3;
    text-shadow: 0 0 12px rgba(255, 235, 150, 0.9);
}

/* ============================
   RESPONSIVE - IMAGENES
   ============================ */

@media (max-width: 1024px) {
    .foto {
        width: 90%;
        height: 60vh;
    }
    .slide .info h3 { font-size: 1.6rem; }
    .slide .info p { font-size: 0.95rem; }
    .controles span { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .foto {
        width: 95%;
        height: 55vh;
    }
    .slide .info { bottom: 15px; right: 15px; }
    .slide .info h3 { font-size: 1.4rem; }
    .slide .info p { font-size: 0.85rem; }
    .controles span { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .foto {
        width: 100%;
        height: 50vh;
        border-radius: 12px;
    }
    .slide .info {
        bottom: 12px;
        right: 12px;
        text-shadow: 0 0 8px rgba(0,0,0,0.7);
    }
    .slide .info h3 { font-size: 1.2rem; }
    .slide .info p { font-size: 0.75rem; }
    .controles span {
        font-size: 2rem;
        padding: 8px;
    }
}












/* =========================
   GRID PRINCIPAL (3x2)
========================= */
.lista {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* =========================
   TARJETA
========================= */
.tarjeta {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    overflow: hidden;

    border: 3px solid transparent;    
    border-radius: 14px;
    padding: 20px 15px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-size: 100%;

    min-height: 160px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background-size 0.5s ease;
}

/* =========================
   OVERLAY OSCURO
========================= */
.tarjeta::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.8)
    );

    z-index: 1;
    transition: background 0.3s ease;
}

/* Hover overlay más claro */
.tarjeta:hover::before {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.7)
    );
}

/* =========================
   CONTENIDO ENCIMA
========================= */
.tarjeta h1,
.tarjeta .apertura {
    position: relative;
    z-index: 2;
}

/* =========================
   HOVER TARJETA
========================= */
.tarjeta:hover {
    transform: translateY(-6px);
    border-width: 3px;
border-color: rgba(255, 215, 100, 0.6);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.25);

    background-size: 110%; /* 🔥 zoom suave */
}

/* =========================
   TÍTULO
========================= */
.tarjeta h1 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: #f7d47c;

    flex-grow: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    text-align: center;
}

/* =========================
   BOTÓN (APARECE EN HOVER)
========================= */
.tarjeta .apertura {
    margin-top: 10px;
    height: 40px;
    opacity: 0;
    transform: translateY(10px);

    transition: all 0.3s ease;
}

.tarjeta:hover .apertura {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   BOTÓN ESTILO
========================= */
.tarjeta .apertura a {
    text-decoration: none;
    background: linear-gradient(135deg, #c9a84c, #e7d3a3, #8a6820);
    color: #000;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;

    display: inline-block;

    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);

    transition: all 0.3s ease;

    animation: pulsoBtn 2s infinite;
}

/* =========================
   ANIMACIÓN BOTÓN
========================= */
@keyframes pulsoBtn {
    0% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    }
}

/* =========================
   HOVER BOTÓN
========================= */
.tarjeta .apertura a:hover {
    background: #1f1f1f;
    color: #FFD700;
    transform: translateY(-2px);
}
 


.foto1 {
    background-image: url('../../static/IMG/servicios/1.png');
}

.foto2 {
    background-image: url('../../static/IMG/servicios/2.png');
}

.foto3 {
    background-image: url('../../static/IMG/servicios/3.png');
}

.foto4 {
    background-image: url('../../static/IMG/servicios/4.jpg');
}

.foto5 {
    background-image: url('../../static/IMG/servicios/5.png');
}

.foto6 {
    background-image: url('../../static/IMG/servicios/6.png');
}













/* =========================
   CONTENEDOR PRINCIPAL
========================= */
.cierre {
    width: 90%;
    max-width: 1000px;
    margin: 60px auto;
    padding: 50px 30px;

background: radial-gradient(
    ellipse at center,
    rgba(58, 42, 0, 0.9) 0%,
    #000000 70%
);    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 18px;

    text-align: center;
    position: relative;
    overflow: hidden;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(255, 215, 0, 0.08);
}

/* =========================
   EFECTO SUTIL DE FONDO
========================= */
.cierre::before {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at top,
        rgba(255, 215, 0, 0.08),
        transparent 60%
    );

    z-index: 0;
}

/* =========================
   CONTENIDO ENCIMA
========================= */
.Mensaje,
.LAA {
    position: relative;
    z-index: 2;
}

/* =========================
   MENSAJE PRINCIPAL
========================= */
.Mensaje {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* FRASE DESTACADA */
.Mensaje span {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 38px;
    color: #f7d47c;
    margin-bottom: 10px;
    letter-spacing: 1.5px;

    text-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

/* =========================
   BLOQUE CTA
========================= */
.LAA h1 {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 10px;
}

.LAA p {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #bbbbbb;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* =========================
   BOTÓN
========================= */
.LAA a button {
    background: linear-gradient(135deg, #c9a84c, #e7d3a3, #8a6820);
    color: #000;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    cursor: pointer;

    position: relative;
    overflow: hidden;

    transition: all 0.3s ease;

    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);

    animation: pulsoCierre 2.5s infinite;
}

/* =========================
   EFECTO LUZ SUAVE
========================= */
.LAA a button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;

    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);

    animation: brilloCierre 3s infinite;
}

/* =========================
   HOVER BOTÓN
========================= */
.LAA a button:hover {
    background: #1f1f1f;
    color: #FFD700;
    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.2);
}

/* =========================
   ANIMACIONES
========================= */
@keyframes pulsoCierre {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 22px rgba(255, 215, 0, 0.7);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
}

@keyframes brilloCierre {
    0% {
        left: -60%;
    }
    100% {
        left: 120%;
    }
}
@media (max-width: 1084px) {
    /* ── APERTURA ── */
    .apertura {
        width: 95%;
    }
    .subtitulo {
        font-size: 25px;
        letter-spacing: 1px;
    }
    .frase {
        font-size: 18px;
        padding: 0 10px;
    }
    /* ── IMAGEN Y TEXTO── */
    .presentacion {
        flex-direction: column;
        width: 95%;
        padding: 20px;
        gap: 16px;
    }
    .izquierda {
        width: 50%;
        aspect-ratio: 4 / 3; 
    }
    .derecha {
        text-align: center; 
        width: 90%;
    }
    
    /* ── LISTA ── */
    .lista {
        grid-template-columns: repeat(2, 1fr);  /* 2 columnas */
        width: 95%;
        gap: 16px;
    }
    .tarjeta h1 {
        font-size: 18px;
    }
    /* CTA*/
    .cierre {
        width: 95%;
        padding: 36px 20px;
        margin: 40px auto;
    }
    .Mensaje {
        font-size: 15px;
    }
    .Mensaje span {
        font-size: 22px;
    }
    .LAA h1 {
        font-size: 20px;
    }
    .LAA p {
        font-size: 14px;
    }
}