:root {
    --fuenteHeading: 'Lora', serif;
    --fuenteParrafos: 'Playfair Display', serif;

    --pinkHorizon: #E7BAA0;
    --sandSurge: #E5DACE;
    --mossTide: #B2B2A2;
    --marineGreen: #6D7973;
    --blackSand: #3F3931;
    --primario: #784D3C;
    --secundario: #3F3931;
    --secundarioOscuro: #2a2621;
    --blanco: #ffffff;
    --negro: #000000;
    --gris: #e1e1e1;
    }

html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1rem = 10px */
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: var(--fuenteParrafos);
    font-size: 1.6rem;
    line-height: 2;
}

/** Globales **/

.contenedor {
    max-width: 120rem;
    width: 90%;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

a, p {
    font-family: 'Playfair Display', serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


h1, h2 {
    font-family: var(--fuenteHeading);
}
h1 {
    font-size: 4.8rem;
}
h2 {
    font-family: 'Yeseva One', serif;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;
}
 
h3 { 
    font-family: 'Yuji Boku', serif;
    font-weight: 400;
    font-style: normal;
    font-size: 6.4rem;
}

h4 { 
    font-family: 'Caveat', cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;
}






/* Ejemplo para móviles */
@media (max-width: 768px) {
    h3 {
        font-size: 4.8rem; /* 75% del tamaño original */
    }
    h4 {
        font-size: 3.2rem;
    }
}

img {
    max-width: 100%;
}

/** Utilidades **/
.curso__informacion h4.no-margin {
    text-align: center;
    margin: 0; /* Asegura que no haya márgenes */
}
.entrada__contenido h4.no-margin {
    text-align: center;
    margin: 0; /* Asegura que no haya márgenes */
}
.sidebar h4.no-margin {
    text-align: center;
    margin: 0; /* Asegura que no haya márgenes */
}

.sidebar h3.title {
    text-align: center;
    margin: 0; /* Asegura que no haya márgenes */
}

.no-margin {
    margin: 0;
}
.no-padding {
    padding: 0;
}
.centrar-texto {
    font-family: 'Yuji Boku', serif; /* O cualquier fuente que uses en h3 */
    text-align: center;
    font-weight: 400;
    font-size: 2.4rem;
}




/** Header **/

.header {
    background-image: url(../img/3.png);
    height: 60rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.header__texto {
    text-align: center;
    color: var(--blanco);
    margin-top: 5rem;
}
.barra {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .barra {
        padding-top: 4rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.logo {
    color: var(--blanco);
    display: flex;
    justify-content: center;
}

.logo__icono img {
    max-width: 150px;
}

.navegacion {
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .navegacion {
        display: flex;
        gap: 2rem;
        width: auto;
    }
}

.navegacion__enlace {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    color: var(--blanco);
    padding: 0.5rem 0;
}

@media (min-width: 768px) {
    .navegacion__enlace {
        padding: 0;
    }
}

@media (min-width: 768px) {
    .contenido-principal {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;
    }
}

.entrada {
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;

}

.entrada:last-of-type{
    border: none;
}

.boton {
    display: block;
    font-family: var(--fuenteHeading);
    color: var(--blanco);
    text-align: center;
    padding: 1rem 3rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    border: none;

  
}
@media (min-width: 768px) {
    .boton {
        display: inline-block;
        
    }

.boton:hover{
    cursor: pointer;
    background-color: var(--gris);
    color: var(--blanco);
    transition: all .3s ease-in-out;
}
}
.boton--primario {
    background-color: var(--primario);

}
.boton--secundario {
    background-color: var(--negro)  !important;

}
.productos{
    list-style: none;
}

.widget-producto{
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;

}
.widget-producto:last-of-type{
    border: none;
    margin-bottom: 0;

}
.widget-producto__label {
    font-family: var(--fuenteHeading);
    font-weight: bold;

}
.widget-producto__info {
    font-weight: normal;

}
.widget-producto__info,
.widget-producto__label {
    font-size: 2rem;

}

.footer {
    background-color: var(--blackSand);
    padding-bottom: 3rem;
    margin-top: 4rem;
}

footer .logo__icono {
    width: 100px;  /* o el tamaño que prefieras */
    height: auto;
}


/** sobre nosotros**/

@media (min-width: 768px) {
    .sobre-nosotros{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;

    }
}

/** Catalogo**/


/* Ajuste específico por tamaño de pantalla */




/** catalogo **/

.cursos {
    list-style: none;
}

.widget-curso {
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;
}

.widget-curso:last-of-type {
    border: none;
    margin-bottom: 0;
}

.widget-curso__label {
    font-family: var(--fuenteHeading);
    font-weight: bold;
}

.widget-curso__info {
    font-weight: normal;
}

.widget-curso__info,
.widget-curso__label {
    font-size: 2rem;
}

.curso {
    padding: 3rem 0;
    border-bottom: 1px solid var(--gris);
}

@media (min-width: 768px) {
    .curso {
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 2rem;
    }
}

.curso:last-of-type {
    border: none;
}

.curso__label {
    font-family: var(--fuenteHeading);
    font-weight: bold;
}

.curso__info {
    font-weight: normal;
}

.curso__info,
.curso__label {
    font-size: 2rem;
}

/** logos **/
.logo__icono img {
    width: 150px; /* o 100px, según el tamaño que quieras */
    height: auto;
}




/** Productos **/
.productos {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
}

/* Ajuste para celulares pequeños */
@media (max-width: 768px) {
    .productos {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .productos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .productos {
        grid-template-columns: repeat(4, 1fr);
    }
}


.card-producto {
    background-color: #fff;
    border: 1px solid var(--gris);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-producto__imagen {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.card-producto__contenido {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
    justify-content: space-between;
}

.card-producto__titulo {
    font-family: "Abril Fatface", serif;  /* Asegura que la fuente Abril Fatface se aplique */
    font-size: 2.4rem;                  /* Tamaño de fuente */
    margin: 0;                          /* Elimina márgenes adicionales */
    line-height: 1.4;                   /* Altura de la línea */
    overflow: hidden;                   /* Evita desbordamiento de texto */
    text-overflow: ellipsis;            /* Añade "..." cuando el texto excede el espacio */
    display: -webkit-box;               /* Usado para limitar el número de líneas */
    -webkit-line-clamp: 2;              /* Limita el número de líneas a 2 */
    -webkit-box-orient: vertical;       /* Establece la orientación de las líneas */
    text-align: center;                 /* Centra el texto */
}


.card-producto__precio {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 1rem 0;
    color: var(--primario);
    text-align: center;
}

.card-producto__precio span {
    font-weight: normal;
    color: var(--negro);
}

.boton {
    text-align: center;
    padding: 1rem 2rem;
    background-color: var(--primario);
    color: #fff;
    border: none;
    border-radius: .5rem;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.boton--secundario {
    background-color: var(--secundario);
}

.boton--secundario:hover {
    background-color: var(--secundarioOscuro);
}



/** Contacto **/
.contacto-bg {

    height: 4rem;
    background-size: cover;
    background-repeat: no-repeat;
}

.permanent-marker-regular {
    font-family: "Permanent Marker", cursive;
    font-weight: 400;
    font-style: normal;
  }
  

/* ... (resto del CSS igual) ... */

/** Contacto **/
.formulario {
    background-color: var(--sandSurge);
    margin: -5rem auto 0 auto;
    width: 95%;
    padding: 2rem;
    border-radius: 1rem;
}

@media (min-width: 768px) {
    .formulario {
        padding: 5rem;
    }
}

.campo {
    display: flex;
    margin-bottom: 2rem;
    flex-direction: column;
}

@media (min-width: 768px) {
    .campo {
        flex-direction: row;
    }
}

.campo__label {
    flex: 0 0 100%;
    text-align: left;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .campo__label {
        flex: 0 0 9rem;
        text-align: right;
        padding-right: 2rem;
        margin-bottom: 0;
    }
}

.campo__field {
    flex: 1;
    border: 1px solid var(--gris);
    padding: 1rem;
    border-radius: 0.5rem;
    width: 100%;
}

.campo__field--textarea {
    height: 20rem;
}

/* Mejoras adicionales para móviles */
@media (max-width: 768px) {
    .contenedor {
        width: 95%;
        padding: 0 1rem;
    }

    .centrar-texto {
        font-size: 2rem;
    }

    .campo__field {
        font-size: 1.6rem;
    }
}