/* FunPhotos Systems: reconstrucción estática del diseño original (BeTheme, ajustes del tema de la web) */

@font-face { font-family: "Lato"; src: url("../fonts/lato-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Títulos: la web usaba Montserrat. Si el visitante la tiene instalada se usa; si no, Poppins, que es muy parecida. */
@font-face { font-family: "Titulos"; src: local("Montserrat Light"), local("Montserrat-Light"), url("../fonts/Poppins-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Titulos"; src: local("Montserrat"), local("Montserrat-Regular"), url("../fonts/Poppins-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Titulos"; src: local("Montserrat SemiBold"), local("Montserrat-SemiBold"), url("../fonts/Poppins-Medium.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --rosa: #ff6bff;
  --rosa-menu: #ff83fb;
  --negro: #000000;
  --texto: #626262;
  --fondo: #FCFCFC;
  --gris-caja: #e1e1e1;
  --ancho: 1240px;
  --titulos: "Titulos", "Montserrat", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--fondo); color: var(--texto); font: 400 16px/1.6 "Lato", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: #272727; }
a:hover { color: #000; }
h1, h2, h3, h4, h5, h6 { font-family: var(--titulos); color: #000; margin: 0 0 15px; }
h1 { font-size: 42px; line-height: 44px; font-weight: 300; }
h2 { font-size: 36px; line-height: 42px; font-weight: 300; }
h3 { font-size: 32px; line-height: 36px; font-weight: 300; }
h4 { font-size: 24px; line-height: 26px; font-weight: 300; }
h5 { font-size: 17px; line-height: 22px; font-weight: 600; }
h6 { font-size: 15px; line-height: 19px; font-weight: 400; }
p { margin: 0 0 15px; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; }

.contenedor { width: min(100% - 40px, var(--ancho)); margin: 0 auto; }
.contenedor.ancho { width: min(100% - 40px, 1400px); }

/* Botón plano rosa del tema */
.boton { display: inline-block; background: var(--rosa); color: #383838; text-decoration: none; font: 400 15px/1 var(--titulos); padding: 16px 30px; margin: 10px 0; letter-spacing: .3px; }
.boton:hover { background: #e55ae5; color: #000; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--negro); transition: background .3s; }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; min-height: 90px; gap: 24px; }
.cabecera.transparente { position: fixed; left: 0; right: 0; background: transparent; }
.cabecera.transparente.fija, .cabecera.fija { background: rgba(0,0,0,.95); }
.cabecera .logo img { display: block; width: 183px; height: auto; }
.menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a { display: block; color: #fff; text-decoration: none; font: 400 15px/1 var(--titulos); padding: 14px 12px; }
.menu a:hover, .menu a.activo { color: var(--rosa-menu); }
.submenu { list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: 0; min-width: 230px; background: #F2F2F2; display: none; }
.con-sub:hover .submenu, .con-sub:focus-within .submenu { display: block; }
.submenu a { color: #5f5f5f; padding: 12px 18px; font-size: 14px; }
.submenu a:hover { color: #2e2e2e; background: #e8e8e8; }
.abrir-menu { display: none; background: none; border: 1px solid var(--rosa); color: var(--rosa); font: 400 15px var(--titulos); padding: 10px 14px; cursor: pointer; }

/* Slider de la portada */
.slider { position: relative; height: 100vh; min-height: 560px; max-height: 1080px; background: #000; overflow: hidden; }
.diapo { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; }
.diapo.activa { opacity: 1; z-index: 1; }
.diapo-texto { color: #fff; max-width: 620px; padding-top: 60px; margin-left: 48%; }
.raya { display: block; width: 85px; height: 12px; background: #fff; margin-bottom: 26px; }
.antetitulo { font: 400 22px/1.3 var(--titulos); letter-spacing: 1px; color: #fff; margin-bottom: 14px; }
.antetitulo .ce { height: 34px; width: auto; vertical-align: middle; margin-left: 8px; }
.diapo h2 { color: #fff; font-size: clamp(38px, 5.5vw, 72px); line-height: 1.05; font-weight: 600; margin-bottom: 30px; }
.puntos { position: absolute; z-index: 2; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.punto { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.punto.activo { background: #fff; }

/* Cabecera de páginas interiores */
.subcabecera { background: #222 center top / cover no-repeat; padding: 90px 0 80px; text-align: center; }
.subcabecera h1 { color: #fff; margin: 0; font-size: 42px; letter-spacing: 1px; }
.banda { padding: 70px 0 60px; }
.banda h2 { color: #fff; margin: 0; font-size: 42px; line-height: 1.1; letter-spacing: 1px; }
.bloque-ancla, #inicio { scroll-margin-top: 80px; }

/* Secciones y rejilla */
.seccion { position: relative; padding: 40px 0; }
.fila { display: flex; flex-wrap: wrap; margin: 0 -1%; }
.envoltorio { display: flex; flex-wrap: wrap; align-content: flex-start; }
.col { margin: 0 1% 30px; }
.c-1 { width: 98%; } .c-12 { width: 48%; } .c-13 { width: 31.333%; } .c-23 { width: 64.666%; }
.c-14 { width: 23%; } .c-34 { width: 73%; } .c-15 { width: 18%; } .c-45 { width: 78%; } .c-16 { width: 14.666%; }
.envoltorio.c-1 { width: 100%; margin: 0; } .envoltorio.c-12 { width: 50%; margin: 0; } .envoltorio.c-15 { width: 20%; margin: 0; } .envoltorio.c-45 { width: 80%; margin: 0; }
.envoltorio > .c-1 { width: 98%; }
.alinear-center { text-align: center; } .alinear-center img { margin: 0 auto; display: block; }
.separador { height: 0; border-top: 1px solid rgba(0,0,0,.08); margin-top: 10px; margin-bottom: 30px; }

.ancho-total > .contenedor { width: 100%; }
.ancho-total .fila { margin: 0; }
.sin-margen .fila { margin: 0; }
.sin-margen .col { margin: 0; }
.sin-margen .c-15 { width: 20%; } .sin-margen .c-13 { width: 33.333%; }
.sin-margen .col img { display: block; width: 100%; }

/* Bloques partidos: mitad negra con texto, mitad foto */
.resalte-izq, .resalte-der { padding: 0; background: #000; }
.resalte-izq::before, .resalte-der::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 50%; background: #000; }
.resalte-izq::before { left: 0; } .resalte-der::before { right: 0; }
.foto-resalte { position: absolute; inset: 0; background-repeat: no-repeat; background-size: max(1920px, 100%) auto; }
.resalte-izq .contenedor, .resalte-der .contenedor { position: relative; z-index: 2; }
.resalte-izq .col, .resalte-der .col { color: #fff; margin-bottom: 0; }
.resalte-izq h2, .resalte-izq h3, .resalte-izq h4, .resalte-izq h5, .resalte-der h2, .resalte-der h3, .resalte-der h4, .resalte-der h5 { color: #fff; }
.resalte-izq h5, .resalte-der h5 { font-weight: 400; line-height: 1.5; }
.resalte-izq h5 b, .resalte-der h5 b { font-weight: 700; }
.resalte-izq .col p, .resalte-der .col p { color: #e6e6e6; }

/* Cajas de modelos con cambio de color al pasar el ratón */
.caja-hover { display: block; background: var(--gris-caja); padding: 40px 30px; text-align: center; text-decoration: none; transition: background .3s; }
.caja-hover:hover { background: #fff; }
.caja-hover img, .sin-margen .caja-hover img { display: block; margin: 0 auto; height: 300px; width: auto; max-width: 100%; object-fit: contain; }
.caja-hover h4 { margin: 0; color: #000; }

/* Lista con marcas */
.lista-check { list-style: none; padding: 0; margin: 0 0 15px; text-align: left; }
.lista-check li { position: relative; padding: 0 0 14px 34px; color: #000; font: 600 16px/1.45 var(--titulos); }
.lista-check li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 8px; height: 14px; border: solid var(--rosa); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Títulos con línea */
.cabecera-linea { text-align: center; padding: 20px 0 10px; }
.cabecera-linea h3 { display: inline-block; padding-bottom: 14px; border-bottom: 2px solid #000; margin-bottom: 18px; }
.cabecera-sub { max-width: 760px; margin: 0 auto; }

/* Elementos de lista con icono */
.item-lista { display: flex; gap: 16px; align-items: flex-start; }
.item-lista img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.item-lista h5 { margin: 6px 0 4px; }
.item-lista p, .item-lista .txt { margin: 0; font-size: 15px; }
.item-lista .txt h4 { margin: 4px 0 0; font-size: 20px; }
.item-lista .txt p { margin: 0; }

/* Cajas con icono */
.caja-icono { text-align: center; }
.caja-icono img { display: block; margin: 0 auto 18px; height: 90px; width: auto; }
.caja-icono h4 { margin-bottom: 14px; }
.caja-icono div { text-align: justify; }

/* Clientes */
.clientes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #e8e8e8; border-left: 1px solid #e8e8e8; }
.clientes li { border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; display: flex; align-items: center; justify-content: center; height: 150px; padding: 20px; background: #fff; }
.clientes img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* Texto largo (Comprar fotomatón) */
.texto-largo { max-width: 900px; margin: 30px auto 0; text-align: justify; }

/* Blog */
.blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.entrada { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.entrada img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entrada > div { padding: 24px; }
.entrada h3 { font-size: 24px; line-height: 1.2; }
.fecha { font-size: 13px; color: #a8a8a8; margin-bottom: 8px; }

/* Pie */
.pie { background: #000; color: #a8a8a8; padding: 34px 0; text-align: center; font-size: 14px; }
.pie a { color: #dedede; }
.pie img { display: inline-block; }

@media (max-width: 1100px) {
  .menu a { padding: 14px 8px; font-size: 14px; }
}
@media (max-width: 959px) {
  .diapo-texto { margin-left: 0; background: rgba(0,0,0,.45); padding: 30px; }
  .abrir-menu { display: block; margin-left: auto; }
  .menu { display: none; position: absolute; top: 90px; left: 0; right: 0; flex-direction: column; background: #000; padding: 10px 20px 20px; }
  .menu.abierto { display: flex; }
  .submenu { position: static; display: block; background: transparent; padding-left: 14px; }
  .submenu a { color: #ccc; }
  .cabecera.transparente { background: rgba(0,0,0,.85); }
  .c-12, .c-13, .c-23, .c-14, .c-34, .c-45, .c-16 { width: 98%; }
  .envoltorio.c-12, .envoltorio.c-15, .envoltorio.c-45 { width: 100%; }
  .c-15 { width: 48%; }
  .sin-margen .c-15 { width: 50%; } .sin-margen .c-13 { width: 100%; }
  .resalte-izq::before, .resalte-der::before { display: none; }
  .resalte-izq, .resalte-der { background: #000; padding-top: 300px !important; padding-bottom: 10px !important; }
  .foto-resalte { height: 300px; bottom: auto; background-size: cover; }
  .resalte-izq .col, .resalte-der .col { padding: 40px 0 30px !important; }
  .resalte-der .col:empty { display: none; }
  .clientes { grid-template-columns: repeat(3, 1fr); }
  .blog { grid-template-columns: 1fr; }
  .caja-hover img, .sin-margen .caja-hover img { height: 220px; }
}
@media (max-width: 560px) {
  .cabecera .logo img { width: 140px; }
  .clientes { grid-template-columns: repeat(2, 1fr); }
  .clientes li { height: 110px; }
  .subcabecera { padding: 60px 0 50px; }
  .subcabecera h1, .banda h2 { font-size: 30px; line-height: 1.2; }
  .caja-hover { padding: 24px 12px; }
  .caja-hover img, .sin-margen .caja-hover img { height: 170px; }
  .caja-hover h4 { font-size: 18px; }
  .diapo-texto { padding: 90px 10px 0; margin-left: 0; }
  .antetitulo { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diapo { transition: none; }
}
