
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-principal: #018f60; /* verde tipo WhatsApp */
  --color-secundario: #01608f;

}

/********************************* Menu **************************************/

/* ======================================================
   CONTENEDOR PRINCIPAL
====================================================== */
.menu {
    /*position: fixed;*/
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #2b2b2b, #1a1a1a);
    
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    list-style: none;
    /*padding: 0;*/
    margin: 0;
    z-index: 2000;

    border-radius: 20px;

    padding-left: 0;   /* 🔥 elimina sangría */
    margin-left: 0;

    justify-content: center; /* 🔥 centra los items */

  

}

    .menu > li {
        position: relative;
        
    }

/* ======================================================
   OPCIONES PRINCIPALES 
====================================================== */
        .menu > li > a,
        .menu > li > asp\:LinkButton {
            display: block;
            padding: 12px 20px;
            color: #ffffff;
            text-decoration: none;
            font-weight: 600;
            /*background: linear-gradient(180deg, #3a3a3a, #2b2b2b);*/
            background: transparent;
            border-right: 1px solid #222;

            
        }

            .menu > li > a:hover {
                background: linear-gradient(180deg, #505050, #3a3a3a);
            }

/* ======================================================
   SUBMENÚ (PRIMER NIVEL)
====================================================== */
    .menu li ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 150px;
        background: linear-gradient(180deg, #3a3a3a, #2a2a2a);
        list-style: none;
        padding: 6px 0;
        margin: 0;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 6px 12px rgba(0,0,0,.25);

        text-align: left; /* 🔥 fuerza izquierda */

    }

    .menu li:hover > ul {
        display: block;
    }

/* ======================================================
   OPCIONES NORMALES (MENÚ SIN AGRUPACIÓN)
====================================================== */
    .menu li ul > li > a {
        display: block;
        padding: 10px 15px;
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        transition: background .3s, padding-left .3s;
    }

        .menu li ul > li > a:hover {
            background: linear-gradient(180deg, #565656, #3f3f3f);
            padding-left: 20px;
        }

/* ======================================================
   AGRUPACIONES (O / D / C / CUALQUIERA)
====================================================== */
    .menu li ul > li > span {
        display: block;
        padding: 8px 15px;
        font-weight: 700;
        color: #d0d0d0;
        background: #242424;
        cursor: default;
        border-top: 1px solid #3a3a3a;
        border-bottom: 1px solid #3a3a3a;
    }

/* ======================================================
   SUBMENÚ DENTRO DE AGRUPACIÓN
====================================================== */
    .menu li ul li ul {
        position: static;
        display: block;
        background: none;
        box-shadow: none;
        padding: 0;
    }

        /* Opciones dentro de agrupaciones */
        .menu li ul li ul li a,
        .menu li ul li ul li a:link,
        .menu li ul li ul li a:visited,
        .menu li ul li ul li a:active {
            display: block;
            padding: 10px 20px;
            font-size: 14px;
            color: #ffffff;
            text-decoration: none;
            transition: background .3s, padding-left .3s;
        }

            .menu li ul li ul li a:hover {
                background: linear-gradient(180deg, #565656, #3f3f3f);
                padding-left: 26px;
            }

/* ======================================================
   SEPARADOR
====================================================== */
    .menu .Separador {
        height: 1px;
        background-color: rgba(255,255,255,.25);
        margin: 8px 15px;
    }

/* ======================================================
   MENU EN CEL
====================================================== */


    @media (max-width: 768px) {

  .menu {
    flex-direction: column;   /* 🔥 vertical */
    align-items: stretch;     /* ocupa todo el ancho */
    border-radius: 20px;

  }

  .menu > li {
    width: 100%;
    
  }

  .menu > li > a {
    display: flex;              /* 🔥 clave */
    justify-content: center;    /* centra horizontal */
    align-items: center;        /* centra vertical */

    width: 100%;
    border-right: none;
    border-bottom: 1px solid #222;

    padding: 12px 0;            /* 🔥 importante */
    text-align: center;
  }

  /* 🔵 primer botón (arriba) */
  .menu > li:first-child > a {
    border-radius: 20px 20px 0 0;
  }

  /* 🔵 último botón (abajo) */
  .menu > li:last-child > a {
    border-radius: 0 0 20px 20px;
    border-bottom: none;
  }

}

/* ======================================================
   SUB MENU EN CEL
====================================================== */
@media (max-width: 768px) {
  .menu li ul {
    position: relative;  /* 🔴 ya no flotan */
  }
}



/* Fondo tipo WhatsApp con patrón */
body {
  margin: 0px;
  padding: 0px;
  font-family: Arial, sans-serif;
  background-color: #3A5A98;
 
  display: grid;
  grid-template-rows: auto 1fr;  
  /*height: 100vh;*/
  min-height: 100dvh; /* 🔥 clave */

  padding-bottom: 80px; /* 🔥 altura del footer */

  /* patrón panel solar */
  background-image:
    /* líneas verticales (celdas) */
    repeating-linear-gradient(
      to right,
      rgba(0, 120, 255, 0.3) 0px,
      rgba(0, 120, 255, 0.3) 1px,
      transparent 1px,
      transparent 8px
    ),

    /* líneas horizontales (celdas) */
    repeating-linear-gradient(
      to bottom,
      rgba(0, 120, 255, 0.3) 0px,
      rgba(0, 120, 255, 0.3) 1px,
      transparent 1px,
      transparent 6px
    ),

    /* borde del panel */
    repeating-linear-gradient(
      to right,
      rgba(16, 19, 22, 0.6) 0px,
      rgba(0, 120, 255, 0.6) 2px,
      transparent 2px,
      transparent 40px
    ),

    repeating-linear-gradient(
      to bottom,
      rgba(0, 120, 255, 0.6) 0px,
      rgba(0, 120, 255, 0.6) 2px,
      transparent 2px,
      transparent 25px
    );

  background-size: 40px 25px;

    
}





/* Encabezado */
header {
  background: linear-gradient(135deg, #4db894, #018f60);
  position: relative;
  color: #fff;
  
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 5px;
  gap: 5px;
  align-items: center;
  z-index: 9999;
}

/* efecto luz suave */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.2), transparent 60%);
  pointer-events: none;
}

/* imagen */
.logo img {
  width: 100px;
  height: 100px;
}

.LogoEsquina img {
  width: 80px;
  height: 70px;
  position: fixed;   /* mantiene la imagen fija en la pantalla */
  top: 5px;         /* margen superior */
  left: 10px;        /* margen izquierdo */
  z-index: 10000;
}

.mascota img {
  width: 80px;
  height: 100px;
}

.ClaseImgWhatsApp img {
  width: 40px;
  height: 40px;
}

.ClaseImgCorreo img {
  width: 40px;
  height: 30px;
}

/* Contenedor Encabezado Tipo Chat */

.main {
  margin: 0px auto;
  min-height: 80px;
  
  
  background: rgb(255, 255, 255);
  border-radius: 10px;
  padding: 0px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden; /* 🔥 importante para el brillo */

  flex: 1;
  margin-left: 5px;
}

/* 🧩 imagen de fondo */
.main::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(rgba(74, 191, 238, 0.705), rgba(2, 90, 206, 0.74)),
    url("../img/TejaSolar.png");

  background-repeat: repeat;
  /*background-size: 40px 25px;*/

  z-index: 0;
  border-radius: 10px;
}



/* ✨ brillo animado */
.main .brillo {
  position: absolute;
  top: 0;
  left: -120%;

  width: 35%; /* 🔽 más delgado */

  height: 100%;

  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25),
    transparent 70%
  );

  transform: skewX(-20deg);

  animation: brillo 3.5s ease-in-out infinite; /* 🔥 más suave */

  z-index: 2;
  pointer-events: none; /* 🔥 importante */
}

/* 🎬 animación */
@keyframes brillo {
  0% {
    left: -120%;
  }
  100% {
    left: 120%;
  }
}

/* 🔴 contenido encima */
.main > *:not(.brillo) {
  position: relative;
  z-index: 3;
}


@media (max-width: 768px) {
  .brillo {
    display: none;
  }
}


@media (max-width: 768px) {

  header {
    flex-direction: column;   /* 🔥 se acomodan vertical */
    align-items: center;
  }

  .main {
    width: 100%;              /* 🔥 ocupa todo el ancho */
    margin-left: 0;
    /*margin-top: 10px;*/
  }

  /*
  .logo img {
    width: auto;              
    height: auto;
  }
*/


}

/* 🔥 AQUÍ va la imagen con opacidad 
.main::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("img/TejaSolar.png");
 background-size: 100px 100px;
  background-repeat: repeat;

  opacity: 0.3;   
  z-index: 0;
}
*/




/* 🎨 ESTILO DEL BOTÓN */
.BotonEncabezado {
  display: flex;                 /* para centrar contenido */
  align-items: center;           /* centrado vertical */
  justify-content: center;       /* centrado horizontal */

  background-image: url('../img/imgCotizacion.png?v=2');
  background-size: cover;
  background-position: center;

  color: #ffffff;                /* 👉 aquí cambias el color del texto */
  font-weight: bold;
  text-align: center;

  border: none;
  padding: 10px 18px;
  border-radius: 6px;

  text-decoration: none;
  font-family: Arial, sans-serif;

  transition: all 0.2s ease;
  margin-right: 20px;

  width: 130px;
  height: 35px;                 /* mejor que min-height */

  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* mejora en móvil */
}

/* Efecto SOLO en dispositivos que sí tienen hover (PC) */
@media (hover: hover) {
  .BotonEncabezado:hover {
    opacity: 0.8;
    transform: translateY(-2px) scale(1.02);
  }
}

.BotonEncabezado:active {
  transform: scale(0.95);
}


/*.BotonEncabezado {
      display: inline-block;          
      background-color: #018f60;
      color: #fff;
      border: none;
      padding: 10px 18px;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;           
      font-family: Arial, sans-serif;
      transition: all 0.3s ease;
      margin-right: 20px;
      min-width: 250px;
    }

    .BotonEncabezado:hover {
      opacity: 0.8;
      transform: translateY(-2px) scale(1.02);
    }

*/

    /* Botón Encabezado

.BotonEncabezado {
  background-color: var(--color-principal);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 20px;
  
  
}

.BotonEncabezado:hover {
  opacity: 0.8;
  transform: translateY(-1.01px) scale(1.01); 
}
*/

/*
.contenedor {
  height: 100vh;              
  display: flex;
  justify-content: center;    
  align-items: center;        
}
*/

/*
.ContenidoLogo {
  width: 100%;              
  display: flex;            
  justify-content: center;  
  align-items: center;      
  gap: 10px;                 
}
*/

/*
.ContenidoLogo {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

*/

.ContenidoLogo {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;

  width: 100%;            
/*outline: 3px solid red;*/
    max-width: 800px;
  margin: 0 auto;

}

.ContenidoQS {
  position: relative;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;

  margin: 0 auto;

  border: 2px solid #a7a5a5;        /* borde principal */
  border-radius: 12px;              /* esquinas redondeadas */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* sombra elegante */
  padding: 12px;                    /* espacio interno */
  background-color: #fff;           /* fondo blanco */
  max-width: 900px;                 /* ancho máximo del contenedor */
}

/* 🔥 Ajuste de la imagen dentro del contenedor */
.ContenidoQS img {
  width: 100%;       /* ocupa todo el ancho disponible del contenedor */
  height: auto;      /* mantiene proporción */
  width: 500px;
  display: block;    /* elimina espacios extra debajo de la imagen */
  border-radius: 8px; /* opcional: esquinas redondeadas */
}



@media (max-width: 768px) {
  .ContenidoLogo {
    flex-wrap: wrap;      /* 🔥 solo en celular */
    gap: 20px;
  }

.ContenidoQS {
  position: relative;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;

  margin: 0 auto;

  border: 2px solid #a7a5a5;        /* borde principal */
  border-radius: 12px;              /* esquinas redondeadas */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* sombra elegante */
  padding: 12px;                    /* espacio interno */
  background-color: #fff;           /* fondo blanco */
  width: 350px;                 /* ancho máximo del contenedor */
}

/* 🔥 Ajuste de la imagen dentro del contenedor */
.ContenidoQS img {
  width: 100%;       /* ocupa todo el ancho disponible del contenedor */
  height: auto;      /* mantiene proporción */
  width: 100%;
  display: block;    /* elimina espacios extra debajo de la imagen */
  border-radius: 8px; /* opcional: esquinas redondeadas */
}

}

.itemContacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

.itemContacto img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

.itemContacto:hover {
  transform: scale(1.05);
  opacity: 0.8;
}



.contenido {
  display: flex;
  justify-content: space-between; /* 🔥 separa izquierda y derecha */
  align-items: center;            /* 🔥 centra vertical */
  width: 100%;
  padding: 10px;
}

.textos {
  display: flex;
  flex-direction: column;
  gap: 5px; /* 🔥 separa los textos */
  flex: 1;  /* 🔥 empuja el botón a la derecha */
}

.titulo {
  font-size: 22px;
  font-weight: 600;
  margin: 0;              /* 🔴 quita espacio extra del <p> */
  line-height: 1;         /* 🔴 evita que crezca verticalmente */
 
  color: #000;

  background: linear-gradient(
    to bottom,
    #383838 0%,
    #0a0a0a 60%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 2px 3px rgba(0,0,0,0.4),
    0 4px 6px rgba(0,0,0,0.2);
}

.ClaseTituloPieDePagina {
  font-size: 22px;
  font-weight: 600;
  margin: 0;              /* quita espacio extra del <p> */
  line-height: 1;         /* evita que crezca verticalmente */

  color: #000;            /* letras negras */

  text-align: center;     /* centra el texto horizontalmente */

  /* sombra adecuada para fondo verde */
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),   /* sombra principal */
    0 1px 2px rgba(255, 255, 255, 0.2); /* leve brillo para contraste */

}

/* DIV de Celular o Computadora */

.claseComputadora { 
  
  text-align: center;


  /*display: block;*/
  
  align-items: center;       
  position: relative;
  z-index: 9999; 

  display: flex;           
  
  justify-content: flex-start; 
  
  padding: 1px;

  gap: 5px;
  flex-wrap: wrap;
  flex: 1;

 }



 .claseCelular { display: none; }

@media (max-width: 768px) {
  .claseComputadora { display: none; }
  .claseCelular { display: block; }
}


.ClasePublicidadComputadora {
  margin: 10px;                /* margen alrededor */
  padding: 0px;
 /* margin-bottom: 60px;*/
  border-radius: 15px;         /* bordes redondeados */
  /*background-image: url("../img/TejaSolar.png"); */
 
  background-size: cover;      /* la imagen se adapta al tamaño */
  background-position: center; /* centrada */
  
   /*width: calc(100% - 20px);      ocupa todo el ancho menos los márgenes */
  /*height: calc(100dvh - 200px);   ocupa todo el alto de la ventana menos los márgenes */
  
  width: calc(100% - 20px);   /* ocupa todo el ancho menos márgenes */
  height: calc(100% - 20px);               /* ocupa todo el alto de la fila del grid */

  display: flex;               /* para centrar contenido */
  justify-content: center;     /* centra horizontalmente */
  align-items: center;         /* centra verticalmente */

    /*Efecto Cristal*/
  background: rgba(255, 255, 255, 0.2); /* blanco con 20% de opacidad */
  /*backdrop-filter: blur(10px);           desenfoque del fondo */
  /*-webkit-backdrop-filter: blur(10px);   soporte en Safari */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* borde suave */
  /*padding: 20px;*/
  color: #000; /* texto negro para contraste */
  /*opacity: 0.7;*/

}

.ClasePublicidadCelular {
  margin: 10px;                /* margen alrededor */
  padding: 0px;
  /*margin-bottom: 60px;*/
  border-radius: 15px;         /* bordes redondeados */
  /*background-image: url("../img/TejaSolar.png"); */
  background-size: cover;      /* la imagen se adapta al tamaño */
  background-position: center; /* centrada */
  
   /*width: calc(100% - 20px);      ocupa todo el ancho menos los márgenes */
  /*height: calc(100dvh - 200px);   ocupa todo el alto de la ventana menos los márgenes */
  width: calc(100% - 20px);   /* ocupa todo el ancho menos márgenes */
  /*height: calc(100% - 75px);               /* ocupa todo el alto de la fila del grid */
  height: auto;
min-height: 220px;

  display: flex;               /* para centrar contenido */
  justify-content: center;     /* centra horizontalmente */
  align-items: center;         /* centra verticalmente */

  /*Efecto Cristal*/
  background: rgba(255, 255, 255, 0.2); /* blanco con 20% de opacidad */
  /*backdrop-filter: blur(10px);           desenfoque del fondo */
  /*-webkit-backdrop-filter: blur(10px);   soporte en Safari */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* borde suave */
  /*padding: 20px;*/
  color: #000; /* texto negro para contraste */
  /*opacity: 0.7;*/
  /*background: rgba(255, 255, 255, 0.7);*/

}


/* contenedor principal */
.ClasePieDePaginaFlotante {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;



  background: linear-gradient(135deg, #4db894, #018f60);
  color: white;

  display: flex;
  justify-content: center;   /* centra los 3 */
  align-items: center;

  gap: 40px;                 /* separación entre bloques */

  margin: 0 auto;

  z-index: 9999;
}
 

.itemFooter {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;                  /* espacio icono-texto */
  min-width: 120px;          /* equilibrio */

  text-decoration: none;
  color: white;

  font-size: 17px;
  font-weight: 600;
}

.itemFooter img {
  width: 24px;
  height: 24px;
}

.itemFooter:active {
  transform: scale(0.95);
}


@media (max-width: 768px) {
 
.ClasePieDePaginaFlotante {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;

 

  background: linear-gradient(135deg, #4db894, #018f60);
  color: white;

  display: flex;
  /*justify-content: center;    centra los 3 */
  align-items: center;

  gap: 0px;                 /* separación entre bloques */

  margin: 0 auto;

  z-index: 9999;
}
 

.itemFooter {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;                  /* espacio icono-texto */
  min-width: 120px;          /* equilibrio */

  text-decoration: none;
  color: white;

  font-size: 17px;
  font-weight: 600;
}

.itemFooter img {
  width: 24px;
  height: 24px;
}

.itemFooter:active {
  transform: scale(0.95);
}


}


.ClasePieDePagina {
  margin: 0px;
  padding: 0px;
  height: 60px;                /* ocupa el espacio que reservaste */
  background-color: #222;      /* color de fondo */
  color: white;                /* texto en blanco */
  display: flex;               /* para centrar contenido */
  justify-content: center;     /* centra horizontalmente */
  align-items: center;         /* centra verticalmente */
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  margin-top: 0px;            /* separación respecto al contenido anterior */
}




/******** Imagen Animada de Publicidad *******************************************************************/

/* CONTENEDOR GENERAL */
.contenedor {
  width: 100%;
  max-width: 800px;
  margin: auto;
  height: 300px; /* puedes cambiar esto */
}

/* SLIDER */
.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
 /* background: #000; *//* fondo mientras carga */
 /* background: rgba(252, 250, 250, 0.2);*/
}

/* CONTENEDOR DE SLIDES */
/*
.slides {
  width: 100%;
  height: 100%;
  position: relative;
}*/

.slider {
  height: 100%;
  min-height: 200px;
}

/* CADA SLIDE */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SLIDE ACTIVO */
.slide.active {
  opacity: 1;
}

/* IMÁGENES */
.img-slide {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 🔥 NO recorta */
}

/* BOTONES */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

/* DOTS */
.dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: white;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contenedor {
    height: 200px;
  }
}


.Viñetas 
{
	
font-family: 'Averia+Serif+Libre','Headland+One', 'Salsa', Arial; font-size:18px; color: #000000;
text-shadow: 1px 1px #FFFFFF, -1px -1px #FFFFFF, 1px -1px #FFFFFF, -1px 1px #FFFFFF;

}
.Lista {
  list-style: none;       /* quitamos las viñetas por defecto */
  padding-left: 0;        /* eliminamos sangría */
  margin: 0;
}

.Lista li {
  position: relative;
  padding-left: 25px;     /* espacio para la palomita */
  font-family: inherit;   /* hereda la fuente del contenedor */
  font-size: 16px;        /* ajusta tamaño según tu diseño */
  line-height: 1.6;       /* 🔥 más espacio entre renglones */
}

.Lista li::before {
  content: "\2714";       /* ✔ palomita (Unicode U+2714) */
  position: absolute;
  left: 0;
  top: 0.05em;            /* 🔥 sube ligeramente la palomita */
  color: green;           /* color de la palomita */
  font-weight: bold;      /* más gruesa */
}

.TablaEncabezado
{
	
font-family: 'Averia+Serif+Libre','Headland+One', 'Salsa', Arial;
 font-size:18px; color: #000;

}


/***************** CONTENIDO DE SECCIONES *************************/

.ContenedorSecciones
{

  /*flex-direction: column;*/
  width: 100%;

}

@media (max-width: 768px) {
.ContenedorSecciones {
  display: flex;          /* activa flexbox */
  flex-direction: column; /* 🔥 ordena los hijos de arriba hacia abajo */
  width: 100%;
  align-items: center;
}

}

.grid {
  display: grid;
  /*grid-template-columns: repeat(3, 1fr); *//* 3 columnas iguales */
  grid-template-columns: auto 1fr 1fr;
  gap: 1px;

  font-family: 'Averia+Serif+Libre','Headland+One', 'Salsa', 'Arial';
	font-size:15px;	color: #000000;
  /*text-shadow: 1px 1px 3px #0e0d0d, -1px -1px 3px #FFFFFF, 1px -1px 3px #FFFFFF, -1px 1px 3px #FFFFFF;*/

  /*width: 100%;*/
  /*margin-top: 10px;*/
  margin: 10px;

  color: #333;           /* tono oscuro elegante */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* sombra suave */

}

.grid1C {
  display: grid;
  grid-template-columns: 1fr;

  gap: 1px;
  margin: 10px;

  height: auto;              /* 🔥 NO usar 100% aquí */
  min-height: 0;             /* 🔥 clave */

  align-content: start;
}

@media (max-width: 768px) {
.grid1C {
  display: grid;
  grid-template-columns: 1fr;

  gap: 1px;
  margin: 10px;
  width: 330px;
  height: auto;              /* 🔥 NO usar 100% aquí */
  min-height: 0;             /* 🔥 clave */

  align-content: start;
}

.ContenidoSV {
  position: relative;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;

  margin: 0 auto;

  border: 2px solid #a7a5a5;        /* borde principal */
  border-radius: 12px;              /* esquinas redondeadas */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* sombra elegante */
  padding: 12px;                    /* espacio interno */
  background-color: #fff;           /* fondo blanco */
  width: 320px;                     /* ancho máximo del contenedor */
  height: auto;                     /* altura flexible */
}

/* Imagen dentro del contenedor */
.ContenidoSV img {
  width: 100%;        /* ocupa todo el ancho del contenedor */
  height: 100%;       /* ocupa toda la altura disponible */
  object-fit: contain; /* ajusta sin distorsionar (usa cover si quieres que llene recortando) */
  border-radius: 8px; /* opcional, esquinas redondeadas */
}


}

/*
.grid1C {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;

  font-family: 'Averia+Serif+Libre','Headland+One', 'Salsa', 'Arial';
	font-size:15px;	color: #000000;
  

  margin: 10px;
  min-width: 500px;
  
  color: #333; 
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2); 

}

*/

.grid2C {
  display: grid;
  /*grid-template-columns: repeat(3, 1fr); *//* 3 columnas iguales */
  grid-template-columns: min-content 1fr;
  gap: 1px;

  font-family: 'Averia+Serif+Libre','Headland+One', 'Salsa', 'Arial';
	font-size:15px;	color: #000000;
  /*text-shadow: 1px 1px 3px #0e0d0d, -1px -1px 3px #FFFFFF, 1px -1px 3px #FFFFFF, -1px 1px 3px #FFFFFF;*/

  width: 100%;
  margin-top: 10px;

  color: #333;           /* tono oscuro elegante */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* sombra suave */

}

.grid3C {
  display: grid;
  /*grid-template-columns: repeat(3, 1fr); *//* 3 columnas iguales */
  grid-template-columns: auto 1fr 1fr;
  gap: 1px;

  font-family: 'Averia+Serif+Libre','Headland+One', 'Salsa', 'Arial';
	font-size:15px;	color: #000000;
  /*text-shadow: 1px 1px 3px #0e0d0d, -1px -1px 3px #FFFFFF, 1px -1px 3px #FFFFFF, -1px 1px 3px #FFFFFF;*/

  
  /*margin-top: 10px;*/
  margin: 10px;
  min-width: 500px;

  color: #333;           /* tono oscuro elegante */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* sombra suave */

}

.encabezado {
  font-family: 'Headland One', 'Georgia', serif; /* tipografía más elegante */
  font-size: 18px;       /* letra más grande */
  font-weight: bold;     /* negrita */
  color: #333;           /* tono oscuro elegante */
  text-align: center;    /* centrado */
  text-transform: uppercase; /* opcional: todo en mayúsculas */
  letter-spacing: 2px;   /* espacio entre letras para dar aire */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* sombra suave */
  margin-bottom: 5px;   /* separación respecto al contenido */
}


.item {
  background: #ddd;
  padding: 10px;
  text-align: left;


}

.colspan {
  grid-column: span 2; /* 🔥 equivalente a colspan */
}

.colspan3C {
  grid-column: span 3; /* 🔥 equivalente a colspan */
}




/**************************** GRID VERTICAL **************************************/

.grid1V {
  display: grid;
  grid-template-columns: auto 1fr; /* imagen izquierda por defecto */
  gap: 2px;

  margin: 0;
  min-width: 500px;

  align-items: start;
}

/* 🔥 si la imagen está a la derecha */
.grid1V:has(.imagen:last-child) {
  grid-template-columns: 1fr auto;
}

/* 🔥 evita bugs de grid */
.grid1V > * {
  min-height: 0;
}

/* ================= IMAGEN BASE ================= */

.grid1V .imagen {
  grid-row: 1 / -1;

  display: flex;
  flex-shrink: 0; /* 🔥 evita que se aplaste */

  padding: 2px;
  background: #fff;

  border: 2px solid #cfcfcf;
  border-radius: 12px;

  box-shadow: 0 6px 15px rgba(0,0,0,0.25);

  overflow: hidden;

  margin-top: 0px;
}

/* posición automática */
.grid1V .imagen:first-child {
  grid-column: 1;
  margin-top: 0px;
}

.grid1V .imagen:last-child {
  grid-column: 2;
  margin-top: 0px;
}


/* 🔥 IMAGEN */
.grid1V .imagen img {
  height: 100%;
  width: auto;
  min-width: 180px;   /* 🔥 evita que colapse */
  object-fit: cover;

  border-radius: 8px;
}

/* ================= TAMAÑOS ================= */

.img-sm {
  height: 150px;
}

.img-md {
  height: 240px;
  width: 450px;
}

.img-lg {
  height: 430px;
  width: 480px;
}

/* ================= CONTENIDO ================= */

.grid1V .contenido {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 0px;
  margin-top: -10px;
  align-content: start;
}





/**************************** MAPA ************************************************/

.mapa-contenedor {
  /*width: 650px;*/
  width: 100%;
  /*max-width: 100%;*/

  border-radius: 12px;
  overflow: hidden; /* 🔥 clave */

  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* efecto moderno */
  border: 1px solid rgba(0,0,0,0.1);

  background: #fff;
    
  margin-top: 10px;
  margin-bottom: 10px;

}

/* el mapa ocupa todo */
.mapa-contenedor iframe,
.mapa-contenedor #map {
  width: 100%;
  height: 350px;
  border: none;
}