*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

h1{ font-size: 3.5em;}
h2{ font-size: 2.7em;}
h3{ font-size: 2em;}
p{ font-size: 1.25em;}
ul{ list-style: none;}
li{ font-size: 1.25em;}

body {
    font-family: 'Roboto', sans-serif;
}

.contact-form {
    display: none;
    margin-top: 10px;
}
.contact-form input, .contact-form select, .contact-form textarea, .contact-form button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}
.contact-form button {
    background-color: #d16c14;
    color: white;
    border: none;
    cursor: pointer;
}
.contact-form button:hover {
    background-color: #45a049;
}

.logo-img {
    max-width: 100%;
    height: auto;
    display: block;
}

button{
    font-size: 1.25em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white;
    background-color: rgb(209, 108, 20);
}

button:hover{
    background-color: #d16c14;
}

.container{
    max-width: 1400px;
    margin: auto;
}

.color-acento{color: rgb(209, 108, 20);}

header{
    background-color: rgb(245,245,245);
    
}

header .logo{
    margin: 0;
    padding: 25px 30px;
    font-weight: bold;
    color: rgb(209, 108, 20);
    font-size: 1.6em;
}

header .container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

header nav{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 30px;
}

header a{
    padding: 5px 20px;
    text-decoration: none;
    font-weight: bold;
    color: black;
}

header a:hover{
    color: rgb(209, 108, 20);
}

#hero{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 90vh;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url("media/hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#hero h1{
    color: white;
}

#hero button{
    font-size: 1.75em;
}

#liga-forense .container{
    text-align: center;
    padding: 200px 12px;
    
}


#nuestros-programas{
    background-color: rgb(30,30,30);
    color: white;
    text-align: center;
}

#nuestros-programas .container{
    padding: 150px 12px;
}

#nuestros-programas h2{
    margin-top: 0;
    font-size: 3.2em;
}

#nuestros-programas p{
    display: none;
}

#nuestros-programas .carta{
    background-position: center center;
    background-size: cover;
    padding: 0px 10px;
    margin: 30px;
    border-radius: 15px;
    
}

.carta:first-child{
    background-image: linear-gradient(
        15deg,
        rgba(247, 245, 245, 0.5),
        rgb(248, 246, 246)
    )
    ,url("media/v1.png");

}

.carta:nth-child(2){
    background-image: linear-gradient(
        15deg,
        rgba(247, 245, 245, 0.5),
        rgb(248, 246, 246)
    )
    ,url("media/v2.png");
}

.carta:nth-child(3){
    background-image: linear-gradient(
        15deg,
        rgba(247, 245, 245, 0.5),
        rgb(248, 246, 246)
    )
    ,url("media/v3.png");

}

#caracteristicas .container{
    text-align: center;
    padding: 250px 12px;
}

#caracteristicas li{
    margin: 16px 0px;
    font-weight: bold;
}

#contacto{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(30,30,30);
    color: white;
    height: 30vh;
}

#final h2{
    font-size: 9vw;
}

#final button{
    font-size: 5vw;
}

footer{
    background-color: rgb(230,230,230);
}

footer p{
    margin: 0;
    padding: 12px;
    color: rgb(100,100,100);
}

footer .container{
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@media (min-width: 750px){
    header{
        position: fixed;
        width: 100%;
    }

    header .container{
        flex-direction: row;
        justify-content: space-between;
    }

    header nav{
        flex-direction: row;
        padding-bottom: 0;
        padding-right: 20px;
    }

    #hero h1{
        font-size: 5em;
    }


    #nuestros-programas .programas{
        display: flex;
        justify-content: center;
    }

    #nuestros-programas p{
        display: block;
        margin-bottom: 30px;
    }

    #nuestros-programas h2{
        font-size: 4em;
    }

    #nuestros-programas h3{
        margin-top: 0;
    }

    .programas .carta p {
        /* Inserta una imagen antes del párrafo */
        background: url('ruta-de-la-imagen.png') no-repeat left top;
        padding-left: 40px; /* Ajusta según el tamaño de la imagen */
        background-size: 30px 30px; /* Ajusta el tamaño de la imagen */
    }
    
    .programas button {
        background-color: rgb(230, 102, 11); /* Fondo blanco */
        color: black; /* Letras negras */
        border: 1px solid black; /* Borde negro */
        padding: 4px 10px; /* Ajusta el espacio dentro del botón */
        cursor: pointer;
        font-size: 16px;
        text-align: left; /* Alinea el texto a la izquierda */
        width: 5%;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    }
    
    .programas button:hover {
        background-color: #f0f0f0; /* Color de fondo al pasar el ratón */
    }
    
    .programas div[id^="info"] p {
        margin-left: 20px; /* Alinea las biñetas */
        list-style-type: disc; /* Tipo de biñeta */
        list-style-position: inside; /* Coloca las biñetas dentro del área de contenido */
    }
    
    .programas div[id^="info"] p strong {
        color: orange; /* Color naranja para las biñetas */
    }
    
    .programas div[id^="info"] {
        background-color: white; /* Fondo blanco */
        border: 1px solid #ddd; /* Borde gris claro */
        padding: 15px; /* Ajusta el espacio dentro del div */
        box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    }

    #caracteristicas{
        background-image: url("media/background-2.jpeg");
        background-repeat: no-repeat;
        background-size: 80px 150px;
        background-position: calc(100vw - 500px) 150px;
        padding: auto;
    }

    #caracteristicas .container{
        text-align: initial;
    }

    #caracteristicas ul{
        margin-left: 100px;
    }

    #final h2{
        font-size: 5em;
    }

    #final button{
        font-size: 2em;
    }
    
    footer .container{
        justify-content: flex-end;
    }
}

@media (min-width: 1100px) {
    #caracteristicas{
        background-position-x: calc(100vw - 800px);
    }
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }
    header .logo {
        margin-bottom: 10px;
    }
    header nav a {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

/* POPUP OVERLAY */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}
.popup.active {
    display: flex;
}
.popup-content {
    position: relative;
    background: #fff;
    width: 70vw;
    height: auto;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: fadeIn 0.4s ease;
    max-width: 95vw;
    max-height: 95vh;
    overflow: visible;
}
.close-btn {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
}
.slider {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
}
.slide {
    width: 100%;
    flex-shrink: 0;
    text-align: center;
}
.slide img {
    width: 100%;
    height: auto;
    max-width: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.dots {
    display: flex;
    justify-content: center;
    padding: 10px;
    background: #f2f2f2;
}
.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
}
.dot.active {
    background: #333;
}

   /* Chat bubble */
    .chat-bubble {
      position: fixed;
      right: 20px;
      bottom: 20px;
      width: 50px;
      height: 50px;
      background: #f3f4f3;
      border-radius: 50%;
      display: none;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
      z-index: 999;
    }
    .chat-bubble img { width: 60%; height: auto; }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}