/* =============================================
   PROPIEDADES DEL MAR — Estilos principales
   ============================================= */

:root {
  --primary: #0d6b8a;
  --primary-dark: #094f67;
  --primary-light: #1a90b8;
  --accent: #f0a500;
  --text: #1a2633;
  --text-light: #5a6878;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --border: #dde6ef;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(13,107,138,0.10);
  --shadow-hover: 0 12px 40px rgba(13,107,138,0.20);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--white);
  padding: 14px 30px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 13px 30px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.7); cursor: pointer; transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: white; }

/* ── Botones hero: traslúcidos azules con titilación ── */
@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56,182,255,0.45), 0 4px 20px rgba(0,100,200,0.3); }
  50%       { box-shadow: 0 0 0 10px rgba(56,182,255,0), 0 4px 20px rgba(0,100,200,0.3); }
}
.hero-btns .btn-primary {
  background: rgba(30, 120, 220, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(120, 200, 255, 0.6);
  color: #fff;
  animation: hero-pulse 2.4s ease-in-out infinite;
}
.hero-btns .btn-primary:hover {
  background: rgba(30, 120, 220, 0.8);
  animation: none;
}
.hero-btns .btn-outline {
  background: rgba(20, 90, 180, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(140, 210, 255, 0.55);
  color: #fff;
  animation: hero-pulse 2.4s ease-in-out infinite 1.2s;
}
.hero-btns .btn-outline:hover {
  background: rgba(20, 90, 180, 0.65);
  animation: none;
}

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary);
  padding: 13px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid var(--primary); cursor: pointer; transition: var(--transition);
}
.btn-outline-dark:hover { background: var(--primary); color: white; }

.btn-full { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }

.btn-nav {
  background: var(--primary); color: white !important;
  padding: 9px 22px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; transition: var(--transition);
}
.btn-nav:hover { background: var(--primary-dark); }

/* ---- HEADER ---- */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h); background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 2px 16px rgba(0,0,0,0.1); backdrop-filter: blur(8px); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo img { height: 52px; width: auto; }
.logo-text {
  font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700;
  color: white; transition: var(--transition); display: flex; align-items: center; gap: 8px;
}
#header.scrolled .logo-text { color: var(--primary); }

nav ul { display: flex; align-items: center; gap: 4px; }
nav a { color: rgba(255,255,255,0.9); font-weight: 500; font-size: 0.88rem; padding: 8px 13px; border-radius: 8px; transition: var(--transition); }
nav a:hover { color: white; background: rgba(255,255,255,0.1); }
#header.scrolled nav a { color: var(--text); }
#header.scrolled nav a:hover { background: rgba(13,107,138,0.08); color: var(--primary); }
#header.scrolled nav a.btn-nav { color: white !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }
#header.scrolled .hamburger span { background: var(--text); }

/* ---- LANGUAGE SELECTOR (un solo botón; se abre solo con click) ---- */
#nav .lang-dropdown { position: relative; }
#nav .lang-btn {
  background: none; border: 1.5px solid rgba(255,255,255,0.4); color: rgba(255,255,255,0.9);
  font-family: inherit; font-weight: 500; font-size: 0.84rem; padding: 7px 12px; border-radius: 20px;
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
#header.scrolled #nav .lang-btn { border-color: var(--border); color: var(--text); }
#nav .lang-btn:hover { background: rgba(255,255,255,0.12); }
#header.scrolled #nav .lang-btn:hover { background: var(--bg-alt); }
#nav .lang-caret { font-size: 0.7rem; }
#nav .lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; background: white; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-hover); min-width: 170px; padding: 6px;
  list-style: none; margin: 0; display: none; flex-direction: column; gap: 2px; z-index: 1100;
}
#nav .lang-dropdown.open .lang-menu { display: flex; }
#nav .lang-menu li { margin: 0; width: 100%; }
#nav .lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.86rem; color: var(--text) !important; text-decoration: none; white-space: nowrap; }
#nav .lang-menu a:hover { background: var(--bg-alt) !important; color: var(--primary) !important; }
@media (max-width: 992px) {
  #nav .lang-dropdown { width: 100%; }
  #nav .lang-btn { width: 100%; justify-content: center; border-color: var(--border); color: var(--text); margin: 4px 0; }
  #nav .lang-menu { position: static; box-shadow: none; border: none; width: 100%; padding: 0; margin-top: 4px; }
}

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}

/* Slideshow de fondo */
.hero-slides {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease-in-out;
  transform: scale(1.04);
  animation: heroZoom 25s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
@keyframes heroZoom {
  0%   { transform: scale(1.04); }
  100% { transform: scale(1.12); }
}
/* Overlay oscuro sobre las fotos para que el texto sea legible */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg,
    rgba(6,50,71,0.70) 0%,
    rgba(13,107,138,0.45) 50%,
    rgba(6,50,71,0.60) 100%);
}

.hero-content { position: relative; z-index: 2; padding: calc(var(--header-h) + 40px) 0 80px; color: white; max-width: 680px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f0a500, #e07b39);
  border: none;
  border-radius: 50px; padding: 10px 22px; font-size: 0.9rem; font-weight: 700;
  margin-bottom: 28px; letter-spacing: 0.4px; color: #fff;
  box-shadow: 0 4px 20px rgba(240,165,0,0.45);
  animation: kicker-pulse 2.8s ease-in-out infinite;
}
@keyframes kicker-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(240,165,0,0.45); }
  50%       { box-shadow: 0 6px 32px rgba(240,165,0,0.75); }
}
.hero-content h1 { margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.hero-accent { color: #7dd3fc; }
.hero-content p { font-size: 1.1rem; opacity: 0.88; margin-bottom: 36px; max-width: 540px; line-height: 1.75; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.stat span { font-size: 0.8rem; opacity: 0.72; margin-top: 4px; letter-spacing: 0.3px; }
.stat-div { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* ---- HERO VALUE CARDS ---- */
.hero-value-row {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}
.hero-value-card {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; padding: 16px 20px;
  flex: 1; min-width: 200px; max-width: 260px;
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}
.hero-value-card:hover { background: rgba(255,255,255,0.14); }
.hero-value-icon { font-size: 1.5rem; margin-bottom: 4px; }
.hero-value-card strong { font-size: 0.92rem; font-weight: 700; color: #fff; line-height: 1.3; }
.hero-value-card span { font-size: 0.78rem; color: rgba(255,255,255,0.7); line-height: 1.45; }

.hero-badges-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badge-pill {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px; border-radius: 50px; font-size: 0.82rem; font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll a span { display: block; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.45); border-radius: 12px; position: relative; }
.hero-scroll a span::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: rgba(255,255,255,0.65); border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100%{top:6px;opacity:1} 50%{top:18px;opacity:0.3} }

/* ---- SECTIONS ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

/* Sección Venta — fondo oscuro */
.section-dark {
  background: linear-gradient(160deg,#0a2d3f 0%,#0d4d6a 50%,#0f6080 100%);
  position: relative; overflow: hidden;
}
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(26,144,184,0.2) 0%, transparent 65%);
}
.section-dark .container { position: relative; z-index: 1; }

/* Sección Servicios */
.section-services { background: var(--bg-alt); }

/* Sección Reseñas */
.section-reviews { background: #f0f9ff; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block; background: rgba(13,107,138,0.1); color: var(--primary);
  padding: 5px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 14px;
}
.section-tag-gold {
  background: rgba(240,165,0,0.15); color: #b07800;
}
.section-tag-green {
  background: rgba(22,163,74,0.15); color: #166534;
}

/* ---- VENTA SUB-HEADERS (Casas / Terrenos) ---- */
.venta-sub-header {
  margin-bottom: 28px;
}
.venta-sub-tag {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: none;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.6);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.venta-sub-tag-green {
  background: rgba(22,163,74,0.2);
  color: #86efac;
  border-color: rgba(22,163,74,0.3);
}
.section-header h2 { color: var(--text); margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ---- FILTERS ---- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 22px; border-radius: 50px; border: 1.5px solid var(--border);
  background: white; color: var(--text-light); font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-select {
  padding: 9px 16px; border-radius: 50px; border: 1.5px solid var(--border);
  background: white; color: var(--text-light); font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); max-width: 230px;
}
.filter-select:hover { border-color: var(--primary); }
.filter-select:focus { outline: none; border-color: var(--primary); }
/* Variante para la sección de ventas (fondo oscuro) */
.filters-dark { margin-bottom: 32px; }
.filters-dark .filter-select {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22);
}
.filters-dark .filter-select option { color: #0f172a; }

/* ---- CARDS COMO LINKS ---- */
.card-link {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
}
.card-link:hover .card { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card-link:hover .card-overlay { opacity: 1; }
.card-link:hover .card-img img { transform: scale(1.05); }
.card-link.hidden { display: none; }

/* Carrusel horizontal: si no entran, ruedan de lado (no alargan la página) */
.cards-grid {
  display: flex; flex-wrap: nowrap; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  padding: 10px 2px 18px; scroll-padding-left: 2px;
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.25) transparent;
}
.cards-grid > .card-link { flex: 0 0 320px; width: 320px; scroll-snap-align: start; }
.cards-grid > [id$="-empty"] { flex: 1 0 100%; }
.cards-grid::-webkit-scrollbar { height: 8px; }
.cards-grid::-webkit-scrollbar-thumb { background: rgba(0,0,0,.22); border-radius: 4px; }
.cards-grid::-webkit-scrollbar-track { background: transparent; }
/* En la sección de ventas (fondo oscuro) la barra va clara */
.section-dark .cards-grid { scrollbar-color: rgba(255,255,255,.3) transparent; }
.section-dark .cards-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); }

.card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.card-sale { background: rgba(255,255,255,0.95); }

.card-img-wrap { position: relative; overflow: hidden; }
.card-img {
  height: 224px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0; transition: transform 0.45s ease;
}
.card-placeholder-icon { font-size: 4.5rem; opacity: 0.35; }

/* Overlay hover sobre imagen */
.card-overlay {
  position: absolute; inset: 0; background: rgba(9,79,103,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.card-overlay span {
  background: white; color: var(--primary); padding: 10px 22px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.card-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px; backdrop-filter: blur(4px);
}
.card-badge + .card-badge { left: auto; right: 14px; }
.badge-rent { background: rgba(13,107,138,0.9); color: white; }
.badge-sale { background: rgba(240,165,0,0.92); color: white; }
.badge-sea  { background: rgba(26,155,181,0.9); color: white; }
.badge-land { background: rgba(22,163,74,0.9); color: white; }
.badge-opp  { background: rgba(220,53,69,0.9); color: white; }

/* Cinta diagonal cruzada sobre la foto (Reservada / Vendida) */
.sale-ribbon {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sale-ribbon span {
  width: 150%; text-align: center;
  transform: rotate(-18deg);
  padding: 8px 0;
  font-size: 1.5rem; font-weight: 800; letter-spacing: 4px; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.45);
  border-top: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(1px);
}
.sale-ribbon.reservada span { background: rgba(202,138,4,0.55); }
.sale-ribbon.vendida  span { background: rgba(220,38,38,0.58); }

.card-body { padding: 18px 20px 20px; }
.card-location { color: var(--text-light); font-size: 0.82rem; margin-bottom: 6px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.1rem; color: var(--text); }
.card-features {
  display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px;
}
.card-features span {
  font-size: 0.78rem; color: var(--text-light); background: var(--bg-alt);
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border);
}
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-price strong { font-size: 1.2rem; color: var(--primary); font-weight: 700; font-family: 'Playfair Display', serif; }
.card-price span { font-size: 0.75rem; color: var(--text-light); margin-left: 2px; }
.card-price-sale strong { color: #b07800; }

.card-cta {
  background: var(--primary); color: white;
  padding: 9px 18px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
  transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.card-link:hover .card-cta { background: var(--primary-dark); }
.card-cta-sale { background: #c97900; }
.card-link:hover .card-cta-sale { background: #a66000; }

/* ---- SERVICES ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.service-card {
  background: white; border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-icon { font-size: 2.5rem; margin-bottom: 18px; }
.service-card h3 { margin-bottom: 10px; color: var(--text); font-size: 1.15rem; }
.service-card > p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }
.service-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.service-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt, #f4f7f6);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.2s, transform 0.15s;
}
.service-pill:hover { background: #e8f4f0; transform: translateY(-1px); }
.service-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary); font-size: 0.88rem; font-weight: 600;
  transition: var(--transition); border-bottom: 1px solid transparent;
}
.service-link:hover { border-bottom-color: var(--primary); }

/* ---- SERVICE CARD DESTACADA (Gestión de Alquiler Vacacional) ---- */
.service-card-featured {
  position: relative;
  border: 1.5px solid var(--primary);
  box-shadow: 0 12px 32px -8px rgba(13,107,138,0.28);
}
.service-featured-badge {
  position: absolute; top: -12px; left: 28px;
  background: linear-gradient(135deg, #ff6b35, #e07b39);
  color: white; font-size: 0.74rem; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
  box-shadow: 0 4px 12px rgba(255,107,53,0.4);
  letter-spacing: 0.2px;
}
.service-link-cta {
  background: #25d366; color: white !important; padding: 10px 18px;
  border-radius: 8px; border-bottom: none !important; margin-top: 4px;
  transition: background 0.2s, transform 0.2s;
}
.service-link-cta:hover { background: #1ebe5a; transform: translateY(-1px); }

/* ---- REVIEWS ---- */
.reviews-iframe-wrap {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid #bae6fd; box-shadow: 0 4px 20px rgba(3,105,161,0.08);
  overflow: hidden;
}

/* ---- CONTACTO ---- */
.contact-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.contact-info h3 { margin-bottom: 24px; font-size: 1.2rem; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.contact-list strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 3px; }
.contact-list span, .contact-list a { font-size: 0.92rem; }
.contact-list a { color: var(--primary); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.social-links { display: flex; gap: 10px; }
.social-btn { width: 42px; height: 42px; background: var(--bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); transition: var(--transition); border: 1px solid var(--border); }
.social-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.contact-form { background: white; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-light); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.92rem; font-family: inherit; color: var(--text); background: var(--bg-alt);
  transition: border-color var(--transition); outline: none; resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: white; }
.form-note { text-align: center; font-size: 0.8rem; color: var(--text-light); margin-top: 10px; }
.form-success { text-align: center; padding: 32px 20px; }
.success-icon { font-size: 2.5rem; margin-bottom: 12px; }
.form-success h4 { margin-bottom: 8px; font-size: 1.3rem; }
.form-success p { color: var(--text-light); margin-bottom: 20px; }

/* ---- FOOTER ---- */
/* ===== BANNER GESTIÓN PARA PROPIETARIOS ===== */
.owner-banner {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #0a3644 0%, #0d6b8a 55%, #128f7a 100%);
  padding: 52px 0;
}
.owner-banner-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,0.28), transparent 70%);
  filter: blur(40px); top: -120px; right: -60px; z-index: -1; pointer-events: none;
}
.owner-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.owner-banner-text { color: white; max-width: 640px; }
.owner-badge {
  display: inline-block; background: rgba(255,255,255,0.18); color: white;
  font-size: 0.78rem; font-weight: 600; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.owner-banner-text h3 { font-family: 'Playfair Display', serif; font-size: 1.65rem; font-weight: 700; color: white; margin-bottom: 10px; line-height: 1.3; }
.owner-banner-text p { color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.65; margin-bottom: 18px; }
.owner-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.owner-pill {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: white; padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
}
.owner-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,0.08); border: 1px dashed rgba(255,255,255,0.32);
  border-radius: 12px; padding: 12px 16px; margin-top: 18px;
  font-size: 0.86rem; color: rgba(255,255,255,0.9); line-height: 1.55; max-width: 560px;
}
.owner-note-icon { font-size: 1.1rem; flex-shrink: 0; }
.owner-note strong { color: #ffd48a; }
.owner-btn {
  display: inline-block; background: #25d366; color: white; font-weight: 700; font-size: 0.98rem;
  padding: 17px 32px; border-radius: 10px; white-space: nowrap; text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  animation: owner-glow 2.6s ease-in-out infinite;
}
.owner-btn:hover { background: #1ebe5a; color: white; transform: translateY(-2px); animation: none; box-shadow: 0 8px 28px rgba(37,211,102,0.6); }
@keyframes owner-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  50%      { opacity: 0.7; box-shadow: 0 0 16px 5px rgba(37,211,102,0.45); }
}
@media (prefers-reduced-motion: reduce) { .owner-btn { animation: none; } }
@media (max-width: 640px) {
  .owner-banner-inner { flex-direction: column; align-items: flex-start; }
  .owner-btn { width: 100%; text-align: center; }
}

/* ===== SISTER SITE BANNER ===== */
.sister-banner { background: linear-gradient(135deg, #0d4a5c 0%, #1a7a6e 100%); padding: 40px 0; }
.sister-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sister-banner-text { color: white; }
.sister-badge { display: inline-block; background: rgba(255,255,255,0.18); color: white; font-size: 0.78rem; font-weight: 600; letter-spacing: .04em; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.sister-banner-text h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 8px; }
.sister-banner-text p { color: rgba(255,255,255,0.82); font-size: 0.95rem; max-width: 480px; }
.sister-btn { display: inline-block; background: #ff6b35; color: white; font-weight: 700; font-size: 0.95rem; padding: 14px 28px; border-radius: 10px; white-space: nowrap; transition: background 0.2s, transform 0.2s; animation: sister-glow 2.6s ease-in-out infinite; }
.sister-btn:hover { background: #e85a25; color: white; transform: translateY(-2px); animation: none; box-shadow: 0 8px 28px rgba(255,107,53,0.7); }
@keyframes sister-glow { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,107,53,0.55); } 50% { opacity: 0.7; box-shadow: 0 0 16px 5px rgba(255,107,53,0.45); } }
@media (prefers-reduced-motion: reduce) { .sister-btn { animation: none; } }
@media (max-width: 640px) { .sister-banner-inner { flex-direction: column; align-items: flex-start; } .sister-btn { width: 100%; text-align: center; } }

/* ===== NEWSLETTER BANNER (alta de novedades) ===== */
.newsletter-banner { padding: 8px 0 72px; position: relative; }
.newsletter-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #0a3644 0%, #0d6b8a 55%, #128f7a 100%);
  border-radius: 28px;
  padding: 48px 52px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  box-shadow: 0 24px 60px -12px rgba(10,54,68,0.45), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.newsletter-glow { position: absolute; border-radius: 50%; filter: blur(40px); z-index: -1; pointer-events: none; }
.newsletter-glow-1 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(240,165,0,0.35), transparent 70%); top: -90px; right: -60px; }
.newsletter-glow-2 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(125,211,252,0.25), transparent 70%); bottom: -140px; left: -80px; }
.newsletter-icon-bubble {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.newsletter-banner-text { color: white; flex: 1 1 320px; min-width: 260px; }
.newsletter-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #f0a500, #e07b39); color: #fff;
  font-size: 0.76rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(240,165,0,0.4);
}
.newsletter-banner-text h3 { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700; color: white; margin-bottom: 8px; line-height: 1.25; }
.newsletter-banner-text p { color: rgba(255,255,255,0.82); font-size: 0.93rem; line-height: 1.6; max-width: 440px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.newsletter-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
.newsletter-input-wrap { position: relative; display: flex; align-items: center; }
.newsletter-input-icon { position: absolute; left: 15px; font-size: 0.95rem; opacity: 0.65; pointer-events: none; }
.newsletter-form input[type="email"] {
  padding: 14px 18px 14px 40px; border-radius: 12px; border: 1.5px solid transparent; font-size: 0.93rem;
  min-width: 250px; font-family: inherit; background: rgba(255,255,255,0.96);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: #f0a500; box-shadow: 0 0 0 4px rgba(240,165,0,0.25); }
.newsletter-form button {
  background: linear-gradient(135deg, #f0a500, #e07b39); color: #fff; font-weight: 700; font-size: 0.93rem;
  padding: 14px 26px; border: none; border-radius: 12px; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: kicker-pulse 2.8s ease-in-out infinite;
}
.newsletter-form button:hover { transform: translateY(-2px); animation: none; box-shadow: 0 8px 26px rgba(240,165,0,0.6); }
.newsletter-form button:disabled { opacity: 0.7; cursor: default; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) { .newsletter-form button { animation: none; } }
.newsletter-msg { width: 100%; margin: 14px 0 0; font-size: 0.86rem; font-weight: 600; }
@media (max-width: 900px) {
  .newsletter-card { padding: 36px 30px; }
}
@media (max-width: 640px) {
  .newsletter-card { flex-direction: column; align-items: flex-start; border-radius: 20px; padding: 32px 24px; }
  .newsletter-form { width: 100%; }
  .newsletter-input-wrap { flex: 1; }
  .newsletter-form input[type="email"] { width: 100%; min-width: 0; }
  .newsletter-form button { width: 100%; text-align: center; justify-content: center; }
}

.footer { background: #071e2b; color: rgba(255,255,255,0.78); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.75; margin-bottom: 16px; }
.footer-cta-btn {
  display: inline-block;
  background: #25d366;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 22px;
  transition: background 0.2s, transform 0.2s;
  animation: ctaBlink 2.6s ease-in-out infinite;
}
.footer-cta-btn:hover { background: #1ebe5a; transform: translateY(-1px); animation: none; }
@keyframes ctaBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  50%      { opacity: 0.7; box-shadow: 0 0 14px 4px rgba(37,211,102,0.45); }
}
@media (prefers-reduced-motion: reduce) { .footer-cta-btn { animation: none; } }
.footer-social { display: flex; gap: 12px; margin-top: 20px; font-size: 1.3rem; }
.footer-social a { opacity: 0.65; transition: opacity var(--transition); }
.footer-social a:hover { opacity: 1; }
.footer-links h4, .footer-contact h4 { color: white; font-size: 0.8rem; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links a, .footer-contact a { font-size: 0.88rem; transition: var(--transition); color: rgba(255,255,255,0.72); }
.footer-links a:hover, .footer-contact a:hover { color: white; }
.footer-contact p { font-size: 0.88rem; margin-bottom: 9px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 0.8rem; opacity: 0.5; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; background: #25d366;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition); z-index: 998;
  animation: wpulse 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes wpulse { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.4)} 50%{box-shadow:0 4px 28px rgba(37,211,102,0.7),0 0 0 10px rgba(37,211,102,0.1)} }

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
  nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: white; padding: 16px 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 4px; align-items: stretch; }
  nav a { color: var(--text) !important; display: block; padding: 12px 16px; border-radius: 8px; }
  nav a:hover { background: var(--bg-alt) !important; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .hero-stats { gap: 20px; }
  .stat-div { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 64px 0; }
  /* Móvil: la tarjeta ocupa ~82% y la siguiente "asoma" para invitar a deslizar */
  .cards-grid > .card-link { flex: 0 0 82%; width: 82%; }

  /* HERO: en móvil es un bloque normal (no flex) — así el contenido se ajusta
     al ancho de la pantalla y no se sale para la derecha, y no se tapa con el header. */
  .hero { display: block; min-height: auto; }
  .hero-content { width: 100%; max-width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: 56px; text-align: center; }
  .hero-kicker { font-size: .72rem; padding: 8px 13px; letter-spacing: .3px; margin-bottom: 18px; max-width: 100%; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn-primary, .hero-btns .btn-outline { width: 100%; justify-content: center; text-align: center; }
  .hero-badges-row { justify-content: center; }

  /* Cuadros de valor del hero: ruedan horizontalmente */
  .hero-value-row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .hero-value-card { flex: 0 0 80%; max-width: none; scroll-snap-align: start; text-align: left; }

  /* Cuadros de servicios: ruedan horizontalmente */
  .services-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 16px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
  .service-card { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---- BANNER DE COOKIES ---- */
#pdm-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
  transform: translateY(100%); opacity: 0; transition: transform .35s ease, opacity .35s ease;
  padding: 14px 16px; box-sizing: border-box;
}
#pdm-cookie-banner.show { transform: translateY(0); opacity: 1; }
#pdm-cookie-banner .pdm-cookie-inner {
  max-width: 980px; margin: 0 auto; background: var(--primary-dark, #094f67); color: #fff;
  border-radius: 16px; padding: 18px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.25);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
#pdm-cookie-banner .pdm-cookie-text { flex: 1 1 380px; margin: 0; font-size: .92rem; line-height: 1.5; color: rgba(255,255,255,.92); }
#pdm-cookie-banner .pdm-cookie-more-btn {
  background: none; border: none; padding: 0; margin-left: 2px; color: var(--accent, #f0a500);
  font-weight: 600; font-size: .92rem; text-decoration: underline; cursor: pointer;
}
#pdm-cookie-banner .pdm-cookie-more-text {
  flex: 1 1 100%; margin: -6px 0 0; font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.75);
}
#pdm-cookie-banner .pdm-cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; margin-left: auto; }
#pdm-cookie-banner .pdm-cookie-btn {
  padding: 10px 20px; border-radius: 50px; font-size: .85rem; font-weight: 700; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap; transition: var(--transition, .2s ease);
}
#pdm-cookie-banner .pdm-cookie-essential {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
#pdm-cookie-banner .pdm-cookie-essential:hover { background: rgba(255,255,255,.12); }
#pdm-cookie-banner .pdm-cookie-accept { background: var(--accent, #f0a500); color: #1a1a1a; }
#pdm-cookie-banner .pdm-cookie-accept:hover { filter: brightness(1.08); }

@media (max-width: 640px) {
  #pdm-cookie-banner .pdm-cookie-inner { flex-direction: column; align-items: stretch; padding: 16px 18px; }
  #pdm-cookie-banner .pdm-cookie-actions { margin-left: 0; width: 100%; }
  #pdm-cookie-banner .pdm-cookie-btn { flex: 1; text-align: center; }
}
