/* ==============================
   FANTASÍAS MARIFE — FILIGRANAS DE PAPEL
   Versión final — viva, limpia y sofisticada
   ============================== */

/* 🎨 Paleta definitiva */
:root {
  --rosa-floral: #FF6F91;
  --coral-dulce: #FF9671;
  --menta-profunda: #63D2B4;
  --turquesa-vivo: #3AC0C0;
  --verde-agua: #B4F1D8;
  --blanco: #FFFFFF;
  --gris-claro: #F7F7F7;
  --gris-texto: #2E2E2E;
}

/* ==============================
   Base y tipografía
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(
    135deg,
    rgba(255, 111, 145, 0.35),
    rgba(99, 210, 180, 0.35)
  );
  background-attachment: fixed;
  background-size: cover;
  color: var(--gris-texto);
  line-height: 1.6;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
}

/* ==============================
   Encabezado
   ============================== */
header {
  background: linear-gradient(90deg, var(--rosa-floral), var(--menta-profunda));
  color: var(--blanco);
  text-align: center;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

header .banner {
  background: linear-gradient(135deg, rgba(255,111,145,0.25), rgba(99,210,180,0.25));
  border-radius: 20px;
  padding: 10px; /* espacio entre la imagen y el fondo */
}

.banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 15px;
  max-height: 400px; /* puedes ajustar */
}

/* Título artístico */
header h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  font-weight: 600;
  color: var(--blanco);
  text-shadow: 2px 2px 5px rgba(0,0,0,0.25);
}

/* Subtítulo */
header p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #fffdfd;
}


/* Títulos de secciones */
h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: var(--rosa-floral);
}

/* ==============================
   Navegación
   ============================== */
.navegacion {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 25px 0;
  padding: 0.75rem 1rem;
  background-color: rgba(255,255,255,0.85);
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.navegacion a {
  color: var(--turquesa-vivo);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navegacion a:hover {
  color: var(--rosa-floral);
}

/* ==============================
   Sección Historia
   ============================== */
.historia {
  background-color: rgba(255, 255, 255, 0.95);
  border-left: 8px solid var(--coral-dulce);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.historia h2 {
  color: var(--rosa-floral);
  margin-bottom: 0.8rem;
}

.historia {
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

@media (min-width: 1200px) {
    .trabajos {
        width: 1100px;
        margin: 2rem auto;
    }
}

.contenedor-servicios {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .contenedor-servicios {
        flex-direction: row;
    }
}

.columnas {
    flex: 1;
    padding: 15px;
    border: 1px solid #ccc;
    margin-bottom: 0.5rem;
    border-radius: 15px;
}

.contenedor-servicios p {
    text-align: justify;
    line-height: 1.5;
    padding: 1rem;
    margin: 1rem;
    border-radius: 15px;
}

.iconos {
    height: 5rem;
    width: 5rem;
    border-radius: 35%;
    margin-bottom: 1rem;
}

.iconos .img {
    display: inline-block;
}

h2 {
    text-align: center;
}

ol {
    padding: 1rem;
    margin-left: 20px;
    margin-top: 0.5rem;
}

li {
    padding: 0.25rem 1rem;
    border-radius: 15px;
}

.centrar-imagen {
    padding: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Texto expandible ---- */
.texto-expandible {
  max-height: 4.5em; /* muestra ~3 líneas */
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

.texto-expandible::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em;
  background: linear-gradient(to top, white, transparent);
}

/* Al expandir */
.texto-expandible.expandido {
  max-height: 1000px; /* suficiente para todo el texto */
}

.texto-expandible.expandido::after {
  display: none;
}

/* Botón Leer más */
.leer-mas {
  background: linear-gradient(90deg, var(--rosa-floral), var(--menta-profunda));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: background-color 0.3s ease;
}

.leer-mas:hover {
  background-color: var(--rosa-floral);
}

/* ==============================
   Galería
   ============================== */
.trabajos {
  text-align: center;
  margin-bottom: 2rem;
}

.trabajos h2 {
  color: var(--turquesa-vivo);
  margin-bottom: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.card {
  background-color: var(--blanco);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.05);
}

/* ==============================
   Modal
   ============================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
}

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.modal-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 45px;
  color: var(--blanco);
  cursor: pointer;
}

/* ==============================
   El arte detrás del papel
   ============================== */
.pasos {
  max-width: 1000px;
  margin: 0 auto 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 1.5rem;
  border-left: 6px solid var(--menta-profunda);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.pasos h2 {
  text-align: center;
  color: var(--turquesa-vivo);
  margin-bottom: 1.2rem;
}

.pasos ul {
  list-style: none;
  padding: 0;
}

.pasos li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  background-color: var(--gris-claro);
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.pasos p {
  flex: 1;
  text-align: justify;
}

.pasos img {
  width: 45%;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--menta-profunda);
}

@media (max-width: 768px) {
  .pasos li {
    flex-direction: column;
  }
  .pasos img {
    width: 100%;
  }
}

/* ==============================
   Formulario
   ============================== */
.formulario {
  background-color: rgba(255,255,255,0.9);
  border-radius: 25px;
  padding: 1rem 2rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  border-top: 6px solid var(--rosa-floral);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.formulario legend {
  font-size: 1.1rem;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  color: var(--turquesa-vivo);
  margin-bottom: 1rem;
}

.inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.container-input label {
  font-weight: 600;
  color: var(--gris-texto);
  display: block;
  margin-bottom: 0.3rem;
}

.container-input input,
.container-input textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--menta-profunda);
  background-color: var(--blanco);
}

.enviar {
  display: block;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--rosa-floral), var(--menta-profunda));
  color: var(--blanco);
  padding: 10px 25px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enviar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 111, 145, 0.3);
}

/* ==============================
   Pie de página
   ============================== */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gris-texto);
  margin-top: 1rem;
  padding-bottom: 1rem;
}
