/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* BODY */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    color: white;
    background-color: black;
}
.contenedorBloque{
    display: flex;
    position: relative;
    height: 600px;
}
.contenidoBloque{
    display: flex;
    margin: 150px auto 0 auto;
    flex-direction: column; 
    gap: 20px;
    max-width: 1200px;
    align-items: center;
}
.contenedor{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url("/img/contacto-abogado-penalista.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 20px 40px;
    margin-top: 0;
}

/* Página contacto */
.contenedor .main-contacto{
    position: relative;
    width: 500px;
    height: 500px;
    top: 0;
    box-shadow: inset 20px 20px 20px rgba(0, 0, 0, 0.2),
    25px 35px 20px rgba(0, 0, 0, 0.5),
    25px 30px 30px rgba(0, 0, 0, 0.5), 
    inset -20px -20px 25px rgba(255,255,255,0.9);
    transition: 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30% 70% 70% 30% / 67% 38% 62% 33% ;


}
.contenedor .main-contacto:hover{
    border-radius: 50%;
}
.contenedor .main-contacto:before{
    content: '';
    position: absolute;
    top: 70px;
    left: 95px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.9;
}
.contenedor .main-contacto:after{
    content: '';
    position: absolute;
    top: 110px;
    left: 120px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.9;
}
.contenedor .main-contacto .contenido-contacto{
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;

}
.contenedor .main-contacto .contenido-contacto form {
display: flex;
flex-direction: column;
gap: 20px;
justify-content: center;
align-items: center;
}
.contenedor .main-contacto .contenido-contacto form .input-caja{
    position: relative;
    width: 225px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
    inset 4px 8px 10px rgba(0, 0, 0, 0.1),
    inset -4px -8px 10px rgba(255,255, 255, 1),
    15px 15px 10px rgba(0, 0, 0, 0.05), 
    15px 10px 15px rgba(0,0,0,0.025);
    border-radius: 25px;
    }
    .contenedor .main-contacto .contenido-contacto form .input-caja::before{
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 65%;
        height: 5px;
        border-radius: 50%;
        background: rgba(255,255,255,0.5);
        border-radius: 5px;
        }

    .contenedor .main-contacto .contenido-contacto form .input-caja input{
       border: none;
       outline: none;
       background: transparent;
       width: 100%;
       font-size: 1em;
       padding: 10px 15px;
    }
    .contenedor .main-contacto .contenido-contacto form .input-caja input[type="submit"]{
      color: #fff;
      text-transform: uppercase;
      font-size: 1em;
      cursor: pointer;
      letter-spacing: 0.1em;
      font-weight:500 ;
     }
     .contenedor .main-contacto .contenido-contacto form .input-caja:last-child{
        width: 120px;
        background: gold;
        box-shadow: 
    inset 2px 5px 10px rgba(0, 0, 0, 0.1),
    inset -2px -5px 10px rgba(255,255, 255, 1),
    15px 15px 10px rgba(0, 0, 0, 0.05), 
    15px 10px 15px rgba(0,0,0,0.025);
    transition: 0.8s;
     }
     .contenedor .main-contacto .contenido-contacto form .input-caja:last-child:hover{
        width: 150px;
     }


/* TITULOS */
h1 {
    color: gold;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 10px 30px;
    width: 100%;
    z-index: 1000;
}

/* CONTENEDOR NAV */
.contenedorNavegador {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/*TOGGLE*/
.menu-toggle {
    display: none; /* 👈 oculto en desktop */
    font-size: 28px;
    color: gold;
    cursor: pointer;
}
/* MENU */
.contenedorUL ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.contenedorUL ul li a {
    color: gold;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    text-decoration: none;
}

.contenedorUL ul li a:hover {
    color: white;
    transform: scale(1.1);
}

/* MAIN EN 2 COLUMNAS */
main {
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 100vh;
}

/* TEXTO IZQUIERDA */
main section:first-child {
      background: black;
    padding: 120px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
main section:first-child .texto{
    color: gold;
}
/* IMAGEN DERECHA */
main section:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    color: gold;
}

main section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BLOQUE CON CARRUSEL */
.bloquePenal {
    position: relative;
    background-image: url("/img/abogado-penalista-tenerife.jpg");
    background-size: cover;
    background-position: center;
    
}

/* CONTENEDOR CARRUSEL */
.slider {
   position: absolute; 
     bottom: 40px;
    width: 100%;
    overflow: hidden;
}

/* FILA DE CARDS */
.slides {
       display: flex;
     
    gap: 300px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

/* TARJETAS */
.cardPenal {
    min-width: 450px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
     flex-shrink: 0;
    margin-right: 30px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: 0.3s;
}


/* TITULOS TARJETAS */
.cardPenal h3 {
    color: gold;
}

/* BOTÓN */
.cardPenal a {
    display: inline-block;
    margin-top: 10px;
    color: gold;
    text-decoration: none;
    font-weight: bold;
}

/* ANIMACIÓN CONTINUA */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

#textoDinamico::after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}
.slides:hover {
    animation-play-state: paused;
}

/*cookies,privacidad */
.secundaria {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    bottom: 0;
}
.secundaria ul li{
    list-style: none;
}



/* RESPONSIVE */
@media (max-width: 768px) {


    /* LAYOUT */
    main {
        display: flex;
        flex-direction: column;
    }

    /* TEXTO */
    main section:first-child {
        padding: 90px 20px 30px;
        text-align: center;
    }

    /* IMAGEN */
    .bloquePenal {
        min-height: auto;
        padding: 20px 10px 30px;
    }

    /* QUITAMOS POSICION ABSOLUTA */
    .slider {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }

    /* SIN CARRUSEL */
    .slides {
        animation: none;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    /* CARDS (ESTILO DEFINITIVO) */
    .cardPenal {
        
         min-width: 0 !important;   /* 👈 CLAVE */
         width: 100% !important;
         height: auto !important;
        margin: 30px;

        padding: 16px;
        border-radius: 14px;

        background: rgba(0,0,0,0.55);
        backdrop-filter: blur(8px);

        text-align: center;

        box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    }

    /* TEXTO CARD */
    .cardPenal h3 {
        font-size: 16px;
        margin: 0;
    }

}