/*
Theme Name: Isla Blanca Creativa
Theme URI: https://islablancacreativa.com
Author: Isla Blanca Creativa
Description: Tema a medida para Isla Blanca Creativa. Publicidad digital y creación web en Ibiza y Formentera.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: isla-blanca
*/

/* ---------- Tipografías (alojadas en el propio tema) ---------- */
@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans-variable.woff2") format("woff2");
	font-weight: 400 700;
	font-stretch: 75% 100%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Serif";
	src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Archivo Expanded";
	src: url("assets/fonts/archivo-black-expanded.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Variables ---------- */
:root {
	--crema: #F3F1EC;
	--crema-2: #E7E6E0;
	--tarjeta: #E8E6E0;
	--linea: #D9D6CE;
	--texto: #1D1F1B;
	--texto-suave: #5E6259;
	--acento: #4B5843;
	--oscuro: #111111;
	--claro: #F2F2EF;
	--claro-suave: #D6D6D1;
	--azul: #D3DCE2;
	--lila: #E0DCE8;
	--salvia: #DCE4D7;
	--arena: #EADFD5;
	--sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--serif: "Instrument Serif", Georgia, serif;
	--ancho: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.55;
	color: var(--texto);
	background: var(--crema);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--texto); }
a:hover { color: var(--acento); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
	background: #fff; color: #111; padding: 10px 16px; border-radius: 4px;
}
.contenedor { max-width: var(--ancho); margin: 0 auto; }
.cursiva { font-family: var(--serif); font-style: italic; }
.antetitulo {
	font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-suave);
}
.titulo-seccion { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.02em; }
.suave { color: var(--texto-suave); }

/* ---------- Fondo en blanco y negro ---------- */
.foto-bn {
	position: relative; overflow: hidden; color: var(--claro);
	background: #1a1a1a url("assets/img/fondo-bn.webp") center 40% / cover no-repeat;
}
.foto-bn__sombra { position: absolute; inset: 0; background: #0E0E0E; opacity: .35; pointer-events: none; }
.foto-bn__trama {
	position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(0,0,0,.38) .9px, transparent 1.3px);
	background-size: 4px 4px;
}

/* ---------- Navegación ---------- */
.barra {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px 32px; padding: 22px 0;
}
.barra__logo { display: flex; align-items: center; min-height: 44px; }
.barra__logo img { height: 38px; width: auto; }
.menu-principal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.menu-principal a {
	display: block; padding: 10px 0; color: var(--claro); text-decoration: none; font-size: 16px; font-weight: 500;
}
.menu-principal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.boton-claro {
	display: inline-flex; align-items: center; gap: 12px; background: #F4F4F1; color: var(--oscuro);
	text-decoration: none; font-weight: 600; font-size: 16px; padding: 5px 5px 5px 14px; border-radius: 4px;
}
.boton-claro:hover { background: #fff; color: var(--oscuro); }
.boton-claro__flecha {
	display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
	background: var(--oscuro); color: #fff; border-radius: 3px; font-size: 15px;
}
.boton-claro--grande { font-size: 17px; padding: 6px 6px 6px 18px; }
.boton-claro--grande .boton-claro__flecha { width: 38px; height: 38px; }

/* Cabecera de páginas interiores */
.cabecera-interior { background: var(--oscuro); padding: 0 24px; }

/* ---------- Portada: cabecera ---------- */
.portada__interior {
	position: relative; min-height: 880px; display: flex; flex-direction: column; padding: 0 24px;
}
.portada__centro {
	flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; gap: 22px; padding: 72px 0 56px;
}
.portada__isla { height: 64px; width: auto; opacity: .92; }
.portada__titulo, .portada__subtitulo {
	max-width: 470px; font-weight: 500; font-size: 19px; line-height: 1.4; text-wrap: balance;
}
.portada__subtitulo { max-width: 420px; color: var(--claro-suave); }
.portada__marca {
	margin: 0 0 20px; font-family: "Archivo Expanded", "Arial Black", sans-serif; font-weight: 900;
	font-size: 10.6vw; line-height: .86; letter-spacing: -.035em; text-transform: uppercase;
	color: #A2A29C; text-align: center;
}
.portada__marca span { display: block; }

/* ---------- Secciones ---------- */
.seccion { padding: 96px 24px; }
.seccion--gris { background: var(--crema-2); }

/* Por qué */
.porque { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.porque__texto { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-right: 16px; }
.lista-ventajas { display: flex; flex-direction: column; margin-top: 8px; }
.lista-ventajas__item { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.lista-ventajas__item:last-child { border-bottom: 0; }
.lista-ventajas__item strong { font-weight: 600; }
.lista-ventajas__item span { font-size: 15px; color: var(--texto-suave); }
.porque__destacada {
	flex: 1.25 1 360px; min-width: 0; min-height: 420px; background: var(--azul); border-radius: 22px; padding: 36px;
	display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden;
}
.porque__destacada h3 { max-width: 300px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.015em; color: #1F2A33; }
.porque__emojis { display: flex; justify-content: flex-end; align-items: flex-end; gap: 4px; margin-right: -8px; }
.porque__emojis img:first-child { width: 150px; height: 150px; transform: rotate(-8deg); filter: drop-shadow(0 16px 18px rgba(31,42,51,.22)); }
.porque__emojis img:last-child { width: 118px; height: 118px; filter: drop-shadow(0 14px 16px rgba(31,42,51,.22)); }
.boton {
	align-self: flex-start; display: inline-block; background: var(--acento); color: #fff; text-decoration: none;
	font-weight: 500; font-size: 15px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit;
}
.boton:hover { background: #3c4735; color: #fff; }
.porque__lateral { flex: .7 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tarjeta-texto { background: var(--tarjeta); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tarjeta-texto h3 { font-size: 22px; line-height: 1.2; }
.tarjeta-texto p { font-size: 15px; color: var(--texto-suave); }
.tarjeta-emoji {
	flex: 1 1 auto; min-height: 200px; background: var(--salvia); border-radius: 22px;
	display: flex; align-items: center; justify-content: center;
}
.tarjeta-emoji img { width: 120px; height: 120px; filter: drop-shadow(0 14px 14px rgba(40,60,35,.2)); }

/* Servicios */
.servicios { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.servicios__texto { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.servicios__rejilla {
	flex: 2 1 560px; min-width: 0; display: grid; gap: 14px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
	.servicios__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.servicio {
	text-decoration: none; border-radius: 18px; min-height: 300px; padding: 22px;
	display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
	transition: transform .2s ease;
}
.servicio:hover { transform: translateY(-4px); }
.servicio img { width: 84px; height: 84px; align-self: center; margin-top: 18px; filter: drop-shadow(0 12px 12px rgba(0,0,0,.18)); }
.servicio__nombre { display: block; font-size: 20px; font-weight: 500; line-height: 1.15; }
.servicio__desc { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; }
.servicio--azul { background: var(--azul); color: #1F2A33; } .servicio--azul .servicio__desc { color: #3E4A53; }
.servicio--lila { background: var(--lila); color: #2C2638; } .servicio--lila .servicio__desc { color: #4A4358; }
.servicio--salvia { background: var(--salvia); color: #23301F; } .servicio--salvia .servicio__desc { color: #44523F; }
.servicio--arena { background: var(--arena); color: #3A2C22; } .servicio--arena .servicio__desc { color: #5C4A3D; }
.servicio:hover { color: inherit; }

/* Sobre mí */
.sobremi { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.sobremi__foto {
	flex: .8 1 260px; min-width: 0; max-width: 340px; aspect-ratio: 1 / 1.05; position: relative; border-radius: 20px;
	background: #E2E0D9; border: 1.5px dashed #A8A69E; display: flex; align-items: center; justify-content: center;
	font-weight: 600; color: var(--texto-suave); overflow: hidden;
}
.sobremi__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sobremi__foto--con-imagen { border: 0; }
.sobremi__lema {
	position: absolute; top: 22px; left: 22px; z-index: 1; font-family: var(--serif); font-style: italic;
	font-size: 28px; line-height: 1.05; color: var(--acento); transform: rotate(-6deg);
}
.sobremi__foto--con-imagen .sobremi__lema { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.sobremi__texto { flex: 1.4 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sobremi__texto > p { max-width: 520px; }
.datos { display: flex; flex-wrap: wrap; gap: 18px 0; margin-top: 10px; }
.dato { flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; padding: 0 18px; border-right: 1px solid var(--linea); }
.dato:first-child { padding-left: 0; }
.dato:last-child { border-right: 0; }
.dato strong { font-size: 26px; font-weight: 400; letter-spacing: -.01em; }
.dato span { font-size: 13px; color: var(--texto-suave); }
.testimonio {
	flex: .8 1 240px; min-width: 0; margin: 0; background: #DDE4EA; border-radius: 18px; padding: 28px;
	display: flex; flex-direction: column; gap: 18px;
}
.testimonio blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: #1F2A33; }
.testimonio figcaption { display: flex; flex-direction: column; font-size: 13px; color: #3E4A53; }
.testimonio figcaption strong { font-weight: 600; }

/* Contacto */
.contacto {
	position: relative; padding: 104px 24px; display: flex; flex-wrap: wrap; align-items: flex-end;
	justify-content: space-between; gap: 40px;
}
.contacto__texto { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contacto__texto .antetitulo { color: #CFCFCA; }
.contacto__texto h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.025em; }
.contacto__texto p { max-width: 460px; color: var(--claro-suave); }
.contacto__acciones { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.enlace-claro { color: #fff; font-size: 15px; padding: 8px 0; }
.enlace-claro:hover { color: #E6E6E1; }
.contacto__formulario {
	flex: 1 1 420px; min-width: 0; background: rgba(255,255,255,.96); color: var(--texto); border-radius: 18px; padding: 28px;
}
.contacto__formulario a { color: var(--acento); }

/* Formularios (Contact Form 7, WPForms y similares) */
.contacto__formulario input[type="text"],
.contacto__formulario input[type="email"],
.contacto__formulario input[type="tel"],
.contacto__formulario select,
.contacto__formulario textarea {
	width: 100%; font: inherit; color: inherit; padding: 12px 14px; border: 1.5px solid #C9C6BD;
	border-radius: 10px; background: #fff; margin-top: 4px;
}
.contacto__formulario textarea { min-height: 120px; resize: vertical; }
.contacto__formulario label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.contacto__formulario input[type="submit"], .contacto__formulario button[type="submit"] {
	background: var(--oscuro); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px;
	font: inherit; font-weight: 600; cursor: pointer;
}

/* ---------- Pie ---------- */
.pie { background: var(--oscuro); color: #CFCFCA; padding: 36px 24px; }
.pie__interior { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; font-size: 14px; }
.pie__logo img { height: 32px; width: auto; }
.pie ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pie a { display: block; color: #fff; text-decoration: none; padding: 12px 0; }
.pie a:hover { color: #E6E6E1; text-decoration: underline; }

/* ---------- Blog y páginas ---------- */
.pagina { padding: 80px 24px 96px; }
.pagina__cabecera { max-width: 760px; margin: 0 auto 48px; display: flex; flex-direction: column; gap: 14px; }
.pagina__cabecera h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.025em; }
.contenido { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.7; }
.contenido > * + * { margin-top: 1.1em; }
.contenido h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.015em; margin-top: 1.8em; }
.contenido h3 { font-size: 23px; line-height: 1.25; margin-top: 1.5em; font-weight: 500; }
.contenido a { color: var(--acento); }
.contenido img { border-radius: 14px; }
.contenido blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--texto); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; }
.contenido ul, .contenido ol { padding-left: 1.3em; }
.imagen-destacada { max-width: 980px; margin: 0 auto 48px; border-radius: 22px; overflow: hidden; }
.imagen-destacada img { width: 100%; }
.rejilla-entradas {
	display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.entrada-tarjeta {
	background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--texto);
}
.entrada-tarjeta:hover { color: var(--texto); }
.entrada-tarjeta:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.entrada-tarjeta__imagen { aspect-ratio: 16 / 10; background: var(--crema-2); }
.entrada-tarjeta__imagen img { width: 100%; height: 100%; object-fit: cover; }
.entrada-tarjeta__texto { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.entrada-tarjeta__texto h2 { font-size: 22px; line-height: 1.25; }
.entrada-tarjeta__texto p { font-size: 15px; color: var(--texto-suave); }
.fecha { font-size: 13px; color: var(--texto-suave); }
.paginacion { margin-top: 56px; display: flex; justify-content: center; gap: 8px; }
.paginacion .page-numbers { padding: 10px 16px; border-radius: 999px; text-decoration: none; background: #fff; }
.paginacion .current { background: var(--oscuro); color: #fff; }
.vacio { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }

/* Bloques de WordPress */
.alignwide { max-width: 980px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--texto-suave); text-align: center; }
.wp-block-button__link { background: var(--acento); color: #fff; border-radius: 999px; padding: 12px 22px; text-decoration: none; }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
	.barra { justify-content: center; }
	.menu-principal { order: 3; width: 100%; }
	.menu-principal ul { justify-content: center; }
	.portada__interior { min-height: 0; }
	.portada__centro { padding: 56px 0 48px; }
	.seccion { padding: 72px 20px; }
	.dato { flex-basis: 100%; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--linea); }
	.dato:last-child { border-bottom: 0; }
	.porque__texto { padding-right: 0; }
	.portada__marca { font-size: 12.4vw; }
	.servicio { min-height: 230px; padding: 18px; }
	.servicio img { width: 68px; height: 68px; margin-top: 8px; }
	.servicio__nombre { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.servicio { transition: none; }
}
