/**
 * Theme Name:     RobbieMagie Child
 * Author:         jegtheme
 * Template:       robbiemagie
 * Text Domain:	   robbiemagie-child
 * Description:    Robbie & Magie is a modern and clean Wedding Event Invitation Gutenverse theme for couples, RSVP management, photo galleries, love stories, countdowns, and memorable celebrations. Robbie & Magie is the ideal platform for a professional, stunning website that showcases your special day and creates lasting impressions.
 * Theme URI:      https://fse.jegtheme.com/robbie-and-magie/
 * Author URI:     https://support.jegtheme.com/
 * Version:        1.0.0
 * License:        GNU General Public License v3 or later.
 * License URI:    https://www.gnu.org/licenses/gpl-3.0.html
 * Tags:           block-patterns,custom-logo,custom-menu,editor-style,featured-images,full-site-editing
 */

:root {
	--ov-accent: #a78556;
	--ov-primary: #4d504a;
	--ov-text: #9b9b9b;
	--ov-bg: #f4f0ed;
	--ov-logo-gold: #deb35e;
}

/* ---------- Logo (emblema M&J, es vertical: se limita por altura) ---------- */
.guten-ZsO2lr img,
.guten-dZ3Mrs img {
	width: auto !important;
	object-fit: contain !important;
}
.guten-ZsO2lr img { height: 92px !important; }
.guten-dZ3Mrs img { height: 130px !important; }
.gutenverse-nav-logo img { height: 90px; width: auto; }
/* El encabezado flota sobre el hero (la plantilla lo hacía con un margen negativo fijo de -95px,
   que dejaba una franja blanca al hacer más alto el logo). */
.guten-kJbCxF {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100%;
	margin-bottom: 0 !important;
	z-index: 999;
}
.admin-bar .guten-kJbCxF { top: 32px; }
@media (max-width: 782px) { .admin-bar .guten-kJbCxF { top: 46px; } }
@media (max-width: 767px) {
	.guten-ZsO2lr img { height: 64px !important; }
	.guten-dZ3Mrs img { height: 100px !important; }
}
/* Páginas interiores: el encabezado va sobre fondo claro (usan el logo dorado; el Inicio, el blanco) */
@media (min-width: 1025px) {
	body:not(.home) .guten-nav-menu .gutenverse-menu > li > a { color: var(--ov-primary) !important; }
}
body:not(.home) .guten-7CtpTK a.guten-button,
body:not(.home) .guten-7CtpTK a.guten-button span {
	color: var(--ov-accent) !important;
	border-color: var(--ov-accent) !important;
}
.ov-map { display: block; width: 100%; height: 520px; border: 0; margin-top: 50px; filter: saturate(0.85); }
@media (max-width: 767px) { .ov-map { height: 380px; margin-top: 30px; } }
.ov-anchor { display: block; height: 0; overflow: hidden; scroll-margin-top: 100px; }
html { scroll-behavior: smooth; }

/* ---------- Video de fondo del inicio ---------- */
/* Solo en la portada: "Nuestra historia" reutiliza el mismo identificador (guten-wPlldM)
   y necesita que sus fotos sobresalgan de la sección sin recortarse. */
body.home .guten-wPlldM {
	position: relative;
	overflow: hidden;
}
.ov-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
}
/* Todo lo demás de la sección queda por encima del video (la capa oscura incluida) */
body.home .guten-wPlldM > *:not(.ov-hero-video) {
	position: relative;
	z-index: 1;
}
body.home .guten-wPlldM > .guten-background-overlay {
	position: absolute;
	z-index: 1;
}

/* ---------- Reproductor de música ---------- */
.ov-music {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99999;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--ov-accent);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ov-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s, background 0.2s, color 0.2s;
}
.ov-music:hover {
	transform: scale(1.08);
	background: var(--ov-accent);
	color: #fff;
}
.ov-music .ov-icon-pause,
.ov-music .ov-eq { display: none; }
.ov-music.is-playing .ov-icon-play { display: none; }
.ov-music.is-playing .ov-icon-pause { display: block; }
.ov-music .ov-eq {
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	border: 1px solid var(--ov-accent);
	opacity: 0;
}
.ov-music.is-playing .ov-eq,
.ov-music.is-waiting .ov-eq { /* "waiting": el navegador esperó un toque para dejar sonar; el aro late para invitar a tocar */
	display: block;
	animation: ov-pulse 2.4s ease-out infinite;
}
.ov-music.is-waiting { box-shadow: 0 0 0 3px rgba(167, 133, 86, 0.25), 0 4px 16px rgba(0, 0, 0, 0.18); }
.ov-eq i { display: none; }
@keyframes ov-pulse {
	0%   { transform: scale(0.85); opacity: 0.7; }
	100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Secciones propias (Nuestro gran día, Vestimenta, Regalo) ---------- */
.ov-section {
	padding: 90px 24px;
	text-align: center;
	color: var(--ov-primary);
}
.ov-section.ov-bg { background: var(--ov-bg); }
.ov-inner { max-width: 1040px; margin: 0 auto; }
.ov-title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 400;
	font-size: clamp(32px, 5vw, 56px);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.15;
	margin: 0 0 14px;
	color: var(--ov-primary);
}
.ov-orn { display: block; width: 150px; max-width: 60%; margin: 8px auto 18px; }
.ov-sub {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: clamp(18px, 2.4vw, 24px);
	color: var(--ov-primary);
	margin: 0 0 26px;
}
.ov-meta {
	font-family: 'Cormorant Garamond', serif;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-size: clamp(14px, 1.8vw, 18px);
	color: var(--ov-primary);
	margin: 0 0 44px;
}
.ov-events {
	display: grid;
	grid-template-columns: 1fr 1px 1fr;
	gap: 40px;
	align-items: center;
	max-width: 820px;
	margin: 0 auto;
}
.ov-divider {
	align-self: stretch;
	background: linear-gradient(to bottom, transparent, var(--ov-accent), transparent);
	position: relative;
}
.ov-divider::after {
	content: '\2726';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	color: var(--ov-accent);
	background: #fff;
	padding: 6px 0;
	font-size: 22px;
}
.ov-bg .ov-divider::after { background: var(--ov-bg); }
.ov-event svg { width: 72px; height: 72px; margin-bottom: 14px; }
.ov-event h3 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 400;
	font-size: clamp(18px, 2.2vw, 24px);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 6px;
	color: var(--ov-primary);
}
.ov-event .ov-place {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: clamp(18px, 2vw, 22px);
	margin: 0 0 16px;
	color: var(--ov-primary);
}
.ov-event .ov-line {
	display: block;
	width: 48px;
	height: 1px;
	background: var(--ov-accent);
	margin: 0 auto 14px;
}
.ov-event .ov-hour {
	font-family: 'Cormorant Garamond', serif;
	letter-spacing: 0.14em;
	font-size: clamp(20px, 2.4vw, 26px);
	margin: 0;
	color: var(--ov-primary);
}

/* Ornamento: línea con filigrana (se dibuja con CSS para no depender de la dirección del sitio) */
.ov-orn-css { display: block; width: 150px; max-width: 60%; height: 25px; margin: 8px auto 14px; background: url('assets/media/ornament.png') center / contain no-repeat; }

/* ---------- Tu regalo ---------- */
.ov-gift { max-width: 460px; margin: 22px auto 0; }
.ov-seg { display: inline-flex; margin: 0 0 18px; border: 1px solid var(--ov-accent); }
.ov-seg button {
	padding: 10px 30px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ov-accent);
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.ov-seg button.is-on { background: var(--ov-accent); color: #fff; }
.ov-seg button:focus-visible,
.ov-copy:focus-visible { outline: 2px solid var(--ov-primary); outline-offset: 2px; }
.ov-gift-card { padding: 28px 24px 24px; background: #fff; border: 1px solid rgba(167, 133, 86, 0.4); }
.ov-gift-card[hidden] { display: none; }
.ov-bank { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ov-accent); }
.ov-bank svg { flex: none; width: 18px; height: 18px; }
.ov-acc { margin: 10px 0 14px; font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 6vw, 36px); line-height: 1.1; letter-spacing: 0.14em; color: var(--ov-primary); }
.ov-copy {
	padding: 10px 18px;
	border: 1px solid var(--ov-accent);
	border-radius: 0;
	background: transparent;
	color: var(--ov-accent);
	font: inherit;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.ov-copy:hover,
.ov-copy.is-done { background: var(--ov-accent); color: #fff; }
.ov-holder { margin: 16px 0 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 19px; color: var(--ov-primary); }
.ov-more { margin: 14px 0 0; padding-top: 2px; border-top: 1px solid rgba(167, 133, 86, 0.25); }
.ov-more summary { display: block; padding: 10px 0 6px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #9b9b9b; cursor: pointer; list-style: none; }
.ov-more summary::-webkit-details-marker { display: none; }
.ov-more summary::after { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.ov-more[open] summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
.ov-more summary:focus-visible { outline: 2px solid var(--ov-primary); outline-offset: 2px; }
.ov-sum-o { display: none; }
.ov-more[open] .ov-sum-c { display: none; }
.ov-more[open] .ov-sum-o { display: inline; }
.ov-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 10px; margin: 8px 0 0; font-family: 'Cormorant Garamond', serif; font-size: 19px; line-height: 1.4; color: var(--ov-primary); }
.ov-k { font-weight: 600; letter-spacing: 0.04em; color: var(--ov-accent); }
.ov-val { overflow-wrap: anywhere; }
.ov-copy.ov-mini { padding: 0; border: 0; background: none; color: var(--ov-accent); font-size: 11px; letter-spacing: 0.14em; text-decoration: underline; text-underline-offset: 3px; }
.ov-copy.ov-mini:hover, .ov-copy.ov-mini.is-done { background: none; color: var(--ov-primary); }

/* ---------- Código de vestimenta ---------- */
.ov-dress { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 620px; margin: 8px auto 26px; text-align: center; }
.ov-dress-card { padding: 26px 20px 20px; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(167, 133, 86, 0.28); }
.ov-ico { display: block; width: 52px; height: 52px; margin: 0 auto 6px; color: var(--ov-accent); }
.ov-ico svg { display: block; width: 100%; height: 100%; }
.ov-dress-card h3 { margin: 4px 0 12px; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 20px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ov-accent); }
.ov-dress-card ul { margin: 0; padding: 0; list-style: none; font-family: 'Cormorant Garamond', serif; font-size: 20px; line-height: 1.4; color: var(--ov-primary); }
.ov-dress-card li { padding: 9px 0; border-top: 1px solid rgba(167, 133, 86, 0.2); }
.ov-dress-card li:first-child { border-top: 0; }
.ov-palette { display: grid; gap: 30px; justify-items: center; }
.ov-pal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ov-primary); }
.ov-pal-label { color: var(--ov-accent); }
.ov-sw-group { display: inline-flex; gap: 10px; }
.ov-sw { display: inline-block; width: 28px; height: 28px; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 50%; vertical-align: middle; }
.ov-res { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 767px) {
	.ov-section { padding: 60px 20px; }
	.ov-events { grid-template-columns: 1fr; gap: 34px; }
	.ov-divider { height: 1px; width: 60%; margin: 0 auto; background: linear-gradient(to right, transparent, var(--ov-accent), transparent); }
	.ov-divider::after { content: '\2726'; padding: 0 6px; }
	.ov-dress { grid-template-columns: 1fr; }
	.ov-seg button { padding: 10px 26px; }
	.ov-music { left: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ---------- Formulario de confirmación por WhatsApp ---------- */
.ov-rsvp { display: grid; gap: 14px; text-align: left; margin-top: 10px; width: 100%; max-width: 100%; box-sizing: border-box; }
.ov-rsvp .ov-field { position: relative; }
.ov-rsvp input,
.ov-rsvp select,
.ov-rsvp textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid rgba(167, 133, 86, 0.38);
	border-radius: 0;
	background: #fff;
	color: var(--ov-primary);
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	box-shadow: none;
}
.ov-rsvp textarea { resize: vertical; min-height: 110px; }
.ov-rsvp ::placeholder { color: #9b9b9b; opacity: 1; }
.ov-rsvp input:focus,
.ov-rsvp select:focus,
.ov-rsvp textarea:focus { outline: none; border-color: var(--ov-accent); }
.ov-rsvp .is-invalid { border-color: #d60000; }
.ov-rsvp .ov-err { display: block; margin-top: 4px; font-size: 12px; color: #d60000; letter-spacing: 0.04em; text-transform: none; }
.ov-rsvp .ov-err[hidden] { display: none; }
.ov-rsvp-btn {
	display: block;
	width: 100%;
	padding: 15px 20px;
	border: 0;
	border-radius: 0;
	background: var(--ov-accent);
	color: #fff;
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s;
}
.ov-rsvp-btn:hover,
.ov-rsvp-btn:focus-visible { background: #b3956b; }
.ov-rsvp-hint { margin: 0; text-align: center; font-size: 13px; color: #9b9b9b; line-height: 1.5; }
.ov-rsvp-note { margin: 0; padding: 12px 14px; font-size: 14px; line-height: 1.5; text-align: center; border: 1px solid rgba(167, 133, 86, 0.38); background: var(--ov-bg); color: var(--ov-primary); }
.ov-rsvp-note[hidden] { display: none; }
.ov-rsvp-note.is-error { border-color: #d60000; color: #a30000; background: #fff5f5; }
.ov-rsvp-note a { color: var(--ov-accent); text-decoration: underline; }

/* ---------- Pantalla de bienvenida ("Abrir invitación") ---------- */
html.ov-gate-on { overflow: hidden; }
.ov-gate { display: none; }
html.ov-gate-on .ov-gate,
.ov-gate.is-leaving {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	align-items: center;
	justify-content: center;
	padding: 28px 20px;
	overflow-y: auto;
	background: var(--ov-bg);
	color: var(--ov-primary);
	text-align: center;
	font-family: 'Muli', 'Nunito', sans-serif;
	opacity: 1;
	transition: opacity 0.8s ease;
}
.ov-gate.is-leaving { opacity: 0; pointer-events: none; }
.ov-gate-inner { width: 100%; max-width: 560px; margin: auto; }
.ov-gate-inner > * { opacity: 0; transform: translateY(14px); animation: ov-gate-in 0.9s ease forwards; }
.ov-gate-inner > :nth-child(1) { animation-delay: 0.10s; }
.ov-gate-inner > :nth-child(2) { animation-delay: 0.25s; }
.ov-gate-inner > :nth-child(3) { animation-delay: 0.40s; }
.ov-gate-inner > :nth-child(4) { animation-delay: 0.55s; }
.ov-gate-inner > :nth-child(5) { animation-delay: 0.70s; }
.ov-gate-inner > :nth-child(6) { animation-delay: 0.85s; }
.ov-gate-inner > :nth-child(7) { animation-delay: 1.00s; }
.ov-gate-inner > :nth-child(8) { animation-delay: 1.15s; }
@keyframes ov-gate-in { to { opacity: 1; transform: none; } }
.ov-gate-logo { display: block; width: auto; height: 150px; margin: 0 auto 22px; }
.ov-gate-kicker { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--ov-accent); }
.ov-gate-names {
	margin: 0;
	font-family: 'Cormorant Garamond', serif;
	font-weight: 400;
	font-size: clamp(40px, 9vw, 68px);
	line-height: 1.1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ov-primary);
}
.ov-gate-names span { padding: 0 0.1em; font-style: italic; text-transform: none; }
.ov-gate-divider { position: relative; display: block; width: 170px; height: 1px; margin: 22px auto; background: linear-gradient(to right, transparent, var(--ov-accent), transparent); }
.ov-gate-divider::after { content: '\2726'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0 8px; background: var(--ov-bg); color: var(--ov-accent); font-size: 14px; line-height: 1; }
.ov-gate-text { max-width: 440px; margin: 0 auto 28px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(18px, 3.4vw, 22px); line-height: 1.5; }
.ov-gate-btn {
	padding: 16px 38px;
	border: 1px solid var(--ov-accent);
	border-radius: 0;
	background: var(--ov-accent);
	color: #fff;
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s;
}
.ov-gate-btn:hover { background: #b3956b; }
.ov-gate-btn:focus-visible { outline: 2px solid var(--ov-logo-gold); outline-offset: 4px; }
.ov-gate-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 12px; letter-spacing: 0.08em; color: #9b9b9b; }
@media (max-width: 480px) {
	.ov-gate-logo { height: 120px; margin-bottom: 18px; }
	.ov-gate-btn { width: 100%; max-width: 320px; padding: 16px 20px; }
}
@media (max-height: 640px) {
	.ov-gate-logo { height: 90px; margin-bottom: 12px; }
	.ov-gate-divider { margin: 14px auto; }
}
@media (prefers-reduced-motion: reduce) {
	.ov-gate-inner > * { opacity: 1; transform: none; animation: none; }
	.ov-gate { transition: none; }
}

@media (max-width: 480px) {
	.ov-bank { flex-direction: column; gap: 6px; }
	.ov-acc { letter-spacing: 0.1em; }
	.ov-dress-card { padding: 22px 16px 16px; }
}

/* ---------- Ajustes (12-oct) ---------- */
/* Íconos de hombre/mujer de la plantilla (los mismos de "Nuestra historia de amor") */
.ov-ico { display: flex; align-items: center; justify-content: center; }
.ov-ico i { font-size: 46px; line-height: 1; color: var(--ov-accent); }
/* Muestra "dorado" con la textura de la foto */
.ov-sw-gold { background: url('assets/media/dorado.jpg') center / cover; }
/* Menos aire entre "Ver galería" y "Nuestro gran día" */
body .guten-yzlHk0.guten-section { padding-bottom: 0 !important; }
#gran-dia.ov-section { padding-top: 70px; }

/* ---------- Galería (13-oct) ---------- */
/* La frase "John & Mar · Juntos · Hasta · El · Final · Ascacia" va repartida en las 6 fotos y se ve siempre
   (la plantilla solo mostraba el texto al pasar el mouse). Velo suave para que se lea sobre fotos claras. */
.guten-JsTRDv .gallery-items .gallery-item-wrap .grid-item .thumbnail-wrap .caption-wrap.style-overlay {
	opacity: 1;
	visibility: visible;
	animation: none !important;
}
.guten-JsTRDv .gallery-items .gallery-item-wrap .grid-item .thumbnail-wrap .caption-wrap .item-hover-bg {
	background-color: #211506 !important;
	opacity: .26 !important;
	transition: opacity .5s ease;
}
.guten-JsTRDv .gallery-items .gallery-item-wrap:hover .grid-item .thumbnail-wrap .caption-wrap .item-hover-bg {
	opacity: .45 !important;
}
.guten-JsTRDv .gallery-items .gallery-item-wrap .thumbnail-wrap .caption-wrap.style-overlay .item-caption-over .item-title {
	font-size: clamp(22px, 3vw, 44px) !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	text-shadow: 0 2px 16px rgba(33, 21, 6, .6);
}

/* ---------- Portada (16-oct) ---------- */
/* Fotos de "El mar como testigo": sin nombres encima, se conserva el velo oscuro. (La galería es el mismo bloque que usa la página Galería, por eso va con body.home.) */
body.home .guten-JsTRDv .gallery-items .gallery-item-wrap .grid-item .thumbnail-wrap .caption-wrap .item-caption-over {
	display: none !important;
}
/* Botones "Ver galería" y "Nuestra historia" lado a lado (uno debajo del otro si no caben) */
.guten-oW0ujP.guten-button-wrapper {
	flex-wrap: wrap;
	gap: 16px 20px;
}
/* Desplegable del formulario ("¿Nos acompañarás en este día tan especial?"): en teléfono el texto es largo, se muestra en minúsculas y más pequeño para que quepa */
@media (max-width: 480px) {
	.ov-rsvp select {
		text-transform: none;
		letter-spacing: 0;
		font-size: 12px;
		padding-left: 12px;
		padding-right: 6px;
		text-overflow: ellipsis;
	}
}
@media (max-width: 360px) {
	.ov-rsvp select { font-size: 11px; }
}
