/* ==========================================================================
   RESET y base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: #0f172a url(fondo.jpg) center center / cover no-repeat scroll;
}

/* ==========================================================================
   TEXTOS GENERALES (ajustados para escalar mejor)
   ========================================================================== */
h1 {
    font-size: clamp(2.4rem, 9vw, 5rem);
    margin: 0.4em 0 0.6em;
    line-height: 1.1;
    letter-spacing: 0.4px;
    text-align: center;
}

h3 {
    color: #111827;
    font-weight: 600;
    margin: 0.8em 0 0.4em;
}

p {
    font-size: clamp(1.05rem, 3.8vw, 1.2rem);
    line-height: 1.6;
    color: #4b5563;
    margin: 0.8em 0;
}

/* ==========================================================================
   HERO - Mobile first: imagen arriba, texto debajo
   ========================================================================== */
.hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 30vh;
    margin: 0;
    padding: 0;
    background: #0f172a;
}

.imagen {
    width: 100%;
    height: auto;
    min-height: 85px;
    background: url(imagen1.jpeg) center top / contain no-repeat;
    flex-shrink: 0;
}

.contenedor {
    width: 100%;
    padding: 2rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.3rem;
}

.contenedor h1 {
    color: #0f172a;
}

.boton-redireccion {
    padding: 1rem 2.2rem;
    display: inline-block;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
    transition: all 0.3s ease;
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
    margin: 1.2rem auto 0.8rem;
    align-self: center;
}

.boton-redireccion:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.55);
}

/* Desktop - hero side by side */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        min-height: 30vh;
    }

    .imagen {
        width: 58%;
        height: auto;
        min-height: 30vh;
        background-position: center center;
    }

    .contenedor {
        width: 42%;
        max-width: 100%;
        padding: 3.5rem 2.5rem;
        margin: 0;
        justify-content: center;
    }

    .contenedor h1 {
        font-size: clamp(3.8rem, 6.5vw, 5.8rem);
    }

    .contenedor p {
        font-size: 1.25rem;
    }
}

/* Evita espacio extra debajo del hero */
.hero + * {
    margin-top: 0 !important;
}

/* CARRUSEL - más estrecho y cuadrado */
.caja {
    width: 100%;
    min-height: 50vh;           /* baja un poco más si quieres */
    margin: 2.5rem 0;
    background: rgba(255, 255, 255, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    overflow: hidden;
}

.carousel {
    width: 90%;
    max-width: 900px;
    height: auto;               /* ← clave: deja que crezca según contenido */
    max-height: 520px;          /* tope para no volverse gigante */
    aspect-ratio: 4 / 3;        /* proporción aproximada cuadrada-horizontal (ajusta si quieres más cuadrado: 1/1 o 5/4) */
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgb(255, 255, 255);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0);        /* fondo claro si hay huecos, opcional */
}
/* ==========================================================================
   TARJETAS (mantenido casi igual)
   ========================================================================== */
.tarjetas {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
}

.tarjetas::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

.tarjeta {
    min-width: 300px;
    max-width: 340px;
    height: auto;
    min-height: 420px;
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-8px);
}

.tarjeta-img {
    width: 100%;
    height: 58%;
    background-size: cover;
    background-position: center;
}

.tarjeta-contenido {
    padding: 1.2rem;
    height: 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.tarjeta-contenido h3 {
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
}

.tarjeta-contenido p {
    margin: 0;
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contactos {
    display: flex;
    flex-direction: column;
}

.cajaC {
    width: 100%;
    min-height: 45vh;
    padding: 2rem 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
}

iframe {
    width: 100%;
    min-height: 45vh;
    border: none;
}

@media (min-width: 768px) {
    .contactos {
        flex-direction: row;
    }
    .cajaC,
    iframe {
        width: 50%;
    }
}

/* ==========================================================================
   BOTONES REDES (mantenido)
   ========================================================================== */
.boton {
    width: 50px;
    height: 50px;
    display: inline-block;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    background-color: #f1f5f9;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    margin: 0 0.8rem;
}

.boton:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* .boton-whatsapp, etc. — mantén tus urls de imágenes */
.boton-whatsapp { background-image: url(image2.png); }
.boton-facebook  { background-image: url(image1.png); }
.boton-gmail     { background-image: url(image.png); }

/* ==========================================================================
   ABOUT / OTRAS SECCIONES QUE TENÍAS
   ========================================================================== */
.aboutMe {
    width: 100%;
    min-height: 45vh;
    padding: 2rem 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
}

.presentacion {
    width: 100%;
    min-height: 45vh;
    padding: 2rem 1.2rem;
    background: rgba(255, 255, 255, 0);
    color: #f1f5f9;
    text-align: center;
}

/* Modal galería (si lo usas) */
.modal-galeria {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    z-index: 9999;
    overflow-y: auto;
    padding: 40px;
}

/*.galeria-grid */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.galeria-grid img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.galeria-grid img:hover {
  transform: scale(1.05);
}

.cerrar {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.espacio{
    width: 100%;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
}



