* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.cesam {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f6fb;
    color: #333;
}

/* HEADER */
.cesam .header {
    height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;

    width: 100%;
}

.cesam .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 50%;
}

.cesam .logo img {
    width: auto;
    height: 150px;
    object-fit: contain;
    background: transparent; 
    transition: transform 0.3s ease;
}

.cesam .logo img:hover {
    transform: scale(1.1);
}

.cesam .logo h1 {
    color: #1f4e8c;
    font-family: 'Playfair Display', serif;
    font-weight: 800;

    white-space: nowrap;
    text-align: center;
    
}

.cesam nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.cesam nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
    
}

.cesam nav a:hover,
.cesam nav a.active {
    color: #1f4e8c;
}

@media (max-width: 768px) {

    .cesam .header{
        padding: 15px 20px; /* menos espacio a los lados */
        display: flex;
        justify-content: space-between;
        align-items: center;

        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .cesam .logo{
        justify-content: center;
        gap: 0px; /* logo pegado a la izquierda */

        width: 100%;
        margin-bottom: 0px;
    }

    .cesam .logo img{
        height: 100px; /* logo más pequeño en celular */
    }

    .cesam .logo h1{
        font-size: 16px;
       
        line-height: 1.2;
        max-width: 95%;
        white-space: normal;
        word-break: break-word;
    }

    .cesam nav {
        width: 100%;
        margin-top: -10px;
    }

    .cesam nav ul{
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;

        padding: 0;
    }

    .cesam nav a {
        font-size: 12px;
    }

        
}

/* SECCIÓN INFO */
.cesam .cesam-info{
    width: 100%;
    position: relative;
    overflow: hidden;
}

.cesam .cesam-info img{
    width: 100%;
    height: auto;
    display: block;
}

.cesam .info-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;
}

.cesam .info-contenedor{
    text-align: center;
    max-width: 800px;
}

.cesam .info-contenedor h1{
    font-size: 28px;
    margin-bottom: 20px;
    color: #1f4e8c;
}

.cesam .info-contenedor p{
    font-size: 18px;
    line-height: 1.6;
    color: white;
}

/* Tablet */
@media (max-width: 992px){

  .cesam .info-contenedor h1{
    font-size: 26px;
  }

  .cesam .info-contenedor p{
    font-size: 16px;
  }

}

/* Celular */
@media (max-width: 576px){

  .cesam .info-overlay{
    padding: 15px;
  }

  .cesam .info-contenedor{
    max-width: 90%;
  }

  .cesam .info-contenedor h1{
    font-size: 13px;
    line-height: 1.2;
  }

  .cesam .info-contenedor p{
    font-size: 9px;
    line-height: 1.4;
  }

}

/* CATÁLOGO */
.cesam .catalogo{
padding:50px;
text-align:center;
}

.cesam .clasificacion h2 {
    font-size: 28px;
    margin-bottom: 40px;
}
.cesam .catalogo-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;
}

.cesam .actividad{
background:#fff;
padding:15px;
border-radius:15px;
box-shadow:0 8px 20px rgba(0,0,0,0.1);
text-align: center;
border-radius: 15px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cesam .actividad:hover{
transform: translateY(-5px);
box-shadow:0 12px 25px rgba(0,0,0,0.12);
}

.cesam .actividad img{
width:100%;
border-radius:10px;
}

.cesam .btn-cotizar{
padding:14px 35px;
border:none;
background:#1f4e8c;
color:white;
border-radius:30px;
cursor:pointer;
font-size: 16px;
font-weight: bold;
transition: 0.3s;
}

.cesam .btn-cotizar:hover{
    background: #163b6b;
    transform: scale(1.05);
    transition: 0.3s;

}

.cesam .contenedor-boton{
    text-align: center;
    margin: 40px 0;
}

.cesam .descripcion{
    margin-bottom: 10px;
}

.cesam .impartido{
    font-size: 12px;
    font-weight: 600;
    color: #777;
}

.cesam .actividad h3{
    font-size: 18px;
    margin: 10px 0;
}

.cesam .actividad p{
    font-size: 14px;
}


/* Tablet */
@media (max-width: 992px){
  .cesam .catalogo-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Celular */
@media (max-width: 576px){
  .cesam .catalogo{
    padding: 30px 15px;
  }

  .cesam .clasificacion h2{
    font-size: 26px;
  }

  .cesam .catalogo-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .cesam .actividad{
    padding: 12px;
  }

  .cesam .actividad h3{
    font-size: 16px;
}

  .cesam .actividad p{
    font-size: 12px;
}
.cesam .actividad .impartido {
    font-size: 10px;
}
  .cesam .btn-cotizar{
    width: auto;
    padding: 12px 25px;
    font-size: 15px;
    display: block;
    margin: 20px auto;
  }
}

/* FOOTER */
.cesam .footer {
    background: linear-gradient(135deg, #173a66, #1f4e8c, #3a6fb3);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 40px 60px;
    flex-wrap: wrap;
}

.cesam .columna {
    width: 30%;
    
}

.cesam .columna h3 {
    margin-bottom: 10px;
    margin-top: 15px;
    font-size: 18px;
}

.cesam .columna p,
.cesam .columna a {
    font-size: 14px;
    color: white;
    text-decoration: none;
}

.cesam .columna ul {
    list-style: none;
    padding: 0;
}

.cesam .columna ul li {
    margin-bottom: 8px;
}

.cesam .columna a:hover {
    color: black;
}

/* Redes sociales */
.cesam .redes img {
    width: 30px;
    margin-right: 10px;
}

/* Mapa */
.cesam .mapa iframe {
    width: 100%;
    height: 180px;
    border-radius: 10px;

}

/* Responsive */
@media (max-width: 768px) {
    .cesam .footer {
        flex-direction: column;
        text-align: center;
    }

    .cesam .columna {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* WHATSAPP */
.cesam .whatsapp-float{
position:fixed;
bottom:20px;
right:20px;
width: 80px;
height: 80px;
background-color: #25D366;
color:white;
border-radius:50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 40px;
z-index: 1000;
text-decoration: none;
animation: latido 1.5s infinite;
} 


/* TEXTO*/
.cesam .texto-wsp{
    position: absolute;
    right: 85px;
    background: #25D366;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 15px;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;

}

.cesam .whatsapp-float:hover .texto-wsp { 
    opacity: 1;
}

@keyframes latido{
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.15);
    }
    100%{
        transform: scale(1);
    }
}

@media (max-width:768px){

    /* BOTON WHATSAPP */
    .cesam .whatsapp-float{
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
        font-size: 30px;
    }

    /* TEXTO */
    .cesam .texto-wsp{
        right: 65px;
        padding: 6px 10px;
        font-size: 12px; /* P */
    }

    /* h */
    .cesam h1{
        font-size: 26px;
    }

    /* Subtitulos */
    .cesam h2,
    .cesam h3{
        font-size: 16px;
    }

    /* P */
    .cesam p{
        font-size: 12px;
        line-height: 1.5;
    }
}

/*ESTILOS FORMULARIO*/
.cesam #formulario{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
justify-content:center;
align-items:center;
z-index:1000;
}

.cesam .form-box{
background:white;
padding:30px;
border-radius:0;
width:650px;
max-width:90%;
overflow-y:auto;
max-height: 90vh;
font-family:'Poppins', sans-serif;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cesam .form-box h2{
    text-align: center;
    margin-bottom: 20px;
    font-family:'Poppins', sans-serif;
}
.cesam .cerrar{
float:right;
cursor:pointer;
font-size:18px;
}

.cesam .form-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px;
margin-bottom:10px;
}

.cesam .form-grid input{
width:100%;
padding:8px;
border:1px solid #ccc;
border-radius:5px;
font-family:'Poppins', sans-serif;
}

.cesam .producto-item{
border:1px solid #ddd;
padding:10px;
margin-top:10px;
border-radius:5px;
}

.cesam .producto-grid{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:10px;
}

.cesam .producto-grid select,
.cesam .producto-grid input{
width:100%;
padding:6px;
border:1px solid #ccc;
border-radius:5px;
font-family:'Poppins', sans-serif;
}

.cesam .subcategoria{
margin-top:10px;
}

.cesam .subcategoria select{
width:100%;
padding:6px;
border:1px solid #ccc;
border-radius:5px;
}

.cesam textarea{
width:100%;
padding:8px;
margin-top:10px;
border-radius:5px;
border:1px solid #ccc;
font-family:'Poppins', sans-serif
}

.cesam button{
margin-top:10px;
padding:10px;
border:none;
cursor:pointer;
border-radius:5px;
}

.cesam .btn-actividad{
background:#ddd;
font-family:'Poppins', sans-serif;
}

.cesam .btn-enviar{
background:#1f4e8c;
color:white;
width:60%;
font-family:'Poppins', sans-serif;
display: block;
margin: 20px auto;
}

.cesam .btn-eliminar{
    background:#ddd;
font-family:'Poppins', sans-serif;

}

@media (max-width: 576px){
    .cesam .form-grid{
        grid-template-columns: 1fr;
    }

    .cesam .producto-grid{
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE FORMULARIO ===== */
@media (max-width:768px){

    /* CONTENEDOR */
    .cesam .form-box{
        width: 80%;
        max-height: 80vh;
        overflow-y: auto;
        padding: 15px;

        max-width: 300px;

    }

    /* h */
    .cesam .form-box h2{
        font-size: 20px;
        line-height: 1.3;
    }

    /* SUBTITULOS */
    .cesam label,
    .cesam h3{
        font-size: 10px;
    }

    /* P */
    .cesam p,
    .cesam input,
    .cesam select,
    .cesam textarea,
    .cesamsertext button{
        font-size: 10px;
        line-height: 1.5;
    }

    /* GRID PRINCIPAL */
    .cesam .form-grid{
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* GRID PRODUCTOS */
    .cesam .producto-grid{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* INPUTS */
    .cesamxt .form-grid input,
    .cesam .producto-grid input,
    .cesam .producto-grid select,
    .cesam textarea,
    .cesam .subcategoria select{
        padding: 10px;
    }

    /* BOTONES */
    .cesam button{
        padding: 10px;
    }

    .cesam .btn-enviar{
        width: 100%;
    }

    /* PRODUCTOS */
    .cesam .producto-item{
        padding: 15px;
    }

    .cesam .btn-actividad,
    .cesam .btn-enviar,
    .cesam .btn-eliminar {
        font-size: 10px;

    }
}

/* ===== COMEDOR COMUNITARIO ===== */

.comedor-section{
    width: 80%;
    max-width: 1100px;
    position: relative;
    border-radius: 25px;
    overflow: hidden;

    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* Imagen */
.comedor-section img{
    width: 100%;
    height: auto;
    display: block;
}

/* Capa oscura encima de la imagen */
.overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0,0,0,0.45);

    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;

    padding: 40px;
    box-sizing: border-box;
}

/* Contenido */
.contenido-comedor{
    text-align: center;
    color: white;
    max-width: 700px;
}

.contenido-comedor h2{
    font-size: 30px;
    margin-bottom: 20px;
}

.contenido-comedor .descripcion{
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.contenido-comedor .impartido{
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */

@media(max-width:768px){

    .comedor-section{
        width: 90%;
    }

    .overlay{
        padding: 20px 15px;
    }

    .contenido-comedor{
        max-width: 100%;
    }

    .contenido-comedor h2{
        font-size: 15px;
        margin-bottom: 10px;
    }

    .contenido-comedor .descripcion{
        font-size: 10px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .contenido-comedor .impartido{
        font-size: 10px;
    }

}


