/* ===========================================
   AGAPE - Estilos Públicos
   =========================================== */
:root {
  --primary: #1e3a8a;
  --primary-dark: #172554;
  --secondary: #f97316;
  --secondary-dark: #ea580c;
  --whatsapp: #25d366;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --border: #e5e7eb;
  --shadow: 0 4px 6px rgba(0,0,0,.05);
  --shadow-md: 0 10px 25px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 16px;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--secondary); color: white; }
.btn-primary:hover { background: var(--secondary-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--primary); color: white; }
.btn-secondary:hover { background: var(--primary-dark); color: white; }
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-whatsapp:hover { background: #1da851; color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-outline-white { background: transparent; border-color: white; color: white; }
.btn-outline-white:hover { background: white; color: var(--primary); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  background: white;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
}
.logo-sub { font-size: .7rem; color: var(--secondary); font-weight: 600; }
.nav-menu { display: flex; gap: 2rem; }
.nav-menu a {
  color: var(--text);
  font-weight: 600;
  position: relative;
  padding: .5rem 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width .3s;
}
.nav-menu a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 6rem 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(249,115,22,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249,115,22,.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; text-align: center; max-width: 850px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: .5rem 1.2rem;
  border-radius: 999px;
  font-size: .9rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.1;
}
.hero .hl { color: var(--secondary); }
.hero-sub {
  font-size: 1.2rem;
  opacity: .9;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ SECCIONES ============ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: .75rem;
}
.section-header p { color: var(--text-light); font-size: 1.1rem; }

.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-header h1 { color: white; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.page-header p { opacity: .9; font-size: 1.1rem; }

/* ============ SERVICIOS ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all .3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.service-card h3 { margin-bottom: .75rem; font-size: 1.3rem; }
.service-card p { color: var(--text-light); margin-bottom: 1rem; }
.service-link { color: var(--secondary); font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; }
.service-link:hover { color: var(--secondary-dark); gap: .6rem; }
.service-features { list-style: none; margin-top: 1rem; }
.service-features li { padding: .3rem 0; padding-left: 1.5rem; position: relative; font-size: .95rem; color: var(--text-light); }
.service-features li::before { content: '✓'; color: var(--whatsapp); position: absolute; left: 0; font-weight: 700; }

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature { text-align: center; }
.feature i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.feature h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.feature p { color: var(--text-light); }

/* ============ COTIZADOR ============ */
.quoter-section { background: var(--primary); color: white; }
.quoter-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.quoter-text h2 { color: white; }
.quoter-text p { opacity: .85; }
.quoter-form {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  color: var(--text);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.quoter-form input, .quoter-form select, .quoter-form textarea {
  width: 100%;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}
.quoter-form textarea { resize: vertical; margin-bottom: 1rem; }

/* ============ POSTS / BLOG ============ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.post-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card-img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--border);
  font-size: 3rem;
}
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-cat {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: .25rem .75rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
  align-self: flex-start;
}
.post-cat-lg { padding: .5rem 1rem; font-size: .85rem; }
.post-card-body h3 { margin-bottom: .5rem; font-size: 1.2rem; line-height: 1.3; }
.post-card-body h3 a { color: var(--text); }
.post-card-body h3 a:hover { color: var(--secondary); }
.post-card-body p { color: var(--text-light); flex: 1; margin-bottom: 1rem; font-size: .95rem; }
.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--text-light);
}
.post-readmore { color: var(--secondary); font-weight: 600; }

/* Filtros */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.cat-chip {
  padding: .4rem 1rem;
  background: var(--bg-alt);
  border-radius: 999px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
}
.cat-chip:hover, .cat-chip.active { background: var(--secondary); color: white; }

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}
.pagination a {
  padding: .5rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.pagination a:hover, .pagination a.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Post detalle */
.post-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 400px;
}
.post-hero-overlay {
  background: linear-gradient(180deg, rgba(30,58,138,.85), rgba(23,37,84,.95));
  padding: 5rem 0 3rem;
  color: white;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}
.post-hero-overlay h1 { color: white; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 1rem 0; }
.post-meta { display: flex; gap: 1.5rem; opacity: .9; font-size: .9rem; }
.post-meta span { display: inline-flex; gap: .3rem; align-items: center; }

.post-container { max-width: 800px; }
.share-bar {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.share-bar > span { font-weight: 600; margin-right: .5rem; }
.share-bar a, .share-bar button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  cursor: pointer;
  transition: transform .2s;
}
.share-bar a:hover, .share-bar button:hover { transform: scale(1.1); color: white; }
.share-fb { background: #1877f2; }
.share-wa { background: var(--whatsapp); }
.share-tw { background: #000; }
.share-tt { background: #000; }
.share-copy { background: var(--text-light); }

.post-content { font-size: 1.1rem; line-height: 1.8; padding: 2rem 0; }
.post-content h2 { margin: 2rem 0 1rem; font-size: 1.8rem; color: var(--primary); }
.post-content h3 { margin: 1.5rem 0 .75rem; font-size: 1.4rem; }
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.2rem 1.5rem; }
.post-content li { margin-bottom: .5rem; }
.post-content blockquote {
  border-left: 4px solid var(--secondary);
  background: var(--bg-alt);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}
.post-content img { margin: 1.5rem 0; border-radius: var(--radius); }
.post-content a { color: var(--secondary); text-decoration: underline; }

.post-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3rem 0;
}
.post-cta h3 { color: white; margin-bottom: .5rem; }
.post-cta p { opacity: .9; margin-bottom: 1.5rem; }

.post-tags { padding: 2rem 0; }
.tag {
  display: inline-block;
  background: var(--bg-alt);
  padding: .3rem .8rem;
  border-radius: 4px;
  font-size: .85rem;
  margin: .25rem;
  color: var(--text-light);
}

/* ============ TESTIMONIOS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.testimonial {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}
.stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 1rem; }
.testimonial p { font-style: italic; color: var(--text); margin-bottom: 1.5rem; }
.testimonial-author { display: flex; gap: 1rem; align-items: center; }
.avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}
.testimonial-author strong { display: block; }
.testimonial-author small { color: var(--text-light); }

/* ============ CTA SECTION ============ */
.cta-section {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 { color: white; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta-section p { font-size: 1.2rem; opacity: .95; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ CONTACTO ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.info-block i {
  font-size: 1.3rem;
  color: var(--secondary);
  width: 40px;
  height: 40px;
  background: rgba(249,115,22,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-block strong { display: block; margin-bottom: .25rem; }
.info-block p { color: var(--text-light); margin: 0; }

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form h2 { margin-bottom: .5rem; }
.contact-form label { display: block; }
.contact-form label span {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .95rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.map-section iframe { display: block; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text h2 { margin-bottom: 1rem; color: var(--primary); }
.about-text h3 { margin-top: 1.5rem; margin-bottom: .5rem; color: var(--secondary); }
.about-text p { margin-bottom: 1rem; color: var(--text-light); }
.about-list { list-style: none; }
.about-list li { padding: .5rem 0; padding-left: 1.8rem; position: relative; }
.about-list li i { color: var(--whatsapp); position: absolute; left: 0; top: .85rem; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-box {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-box strong {
  display: block;
  font-size: 2.2rem;
  color: var(--secondary);
  font-family: var(--font-heading);
}
.stat-box span { color: var(--text-light); font-size: .9rem; }

/* ============ GALERÍA ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-cat {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0,0,0,.7);
  color: white;
  padding: .3rem .8rem;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 600;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox img { max-width: 90%; max-height: 90%; }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.9);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.footer h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links { list-style: none; }
.footer-links li { padding: .35rem 0; font-size: .95rem; }
.footer-links a { color: rgba(255,255,255,.8); }
.footer-links a:hover { color: var(--secondary); }
.footer-links i { color: var(--secondary); margin-right: .5rem; }

.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all .2s;
}
.social-links a:hover { background: var(--secondary); transform: translateY(-3px); }

.newsletter-form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: .6rem .8rem;
  border-radius: var(--radius);
  border: none;
  font-family: inherit;
}
.newsletter-msg { font-size: .85rem; flex-basis: 100%; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .9rem;
}

/* ============ WHATSAPP FLOTANTE ============ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { color: white; transform: scale(1.1); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,.7); }
}

/* ============ FLASH MESSAGES ============ */
.flash-container { position: fixed; top: 100px; right: 1rem; z-index: 9999; }
.flash {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: .5rem;
  background: white;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary);
  animation: slideIn .3s;
}
.flash-success { border-left-color: var(--whatsapp); }
.flash-error { border-left-color: #ef4444; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ PUBLICACIONES (feed tipo Facebook) ============ */
.pubs-container { max-width: 680px; }

.pubs-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pubs-landing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pub-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s;
}
.pub-card:hover { box-shadow: var(--shadow-md); }

.pub-header {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: 1rem 1.2rem .5rem;
}
.pub-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}
.pub-author { flex: 1; line-height: 1.2; }
.pub-author strong { display: block; color: var(--text); font-size: .98rem; }
.pub-author time { font-size: .8rem; color: var(--text-light); }

.pub-text {
  padding: .5rem 1.2rem 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.pub-media {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 600px;
  overflow: hidden;
}
.pub-media img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  max-height: 600px;
  object-fit: cover;
}
.pub-media video {
  width: 100%;
  display: block;
  max-height: 600px;
}

/* Video embed (YouTube, Vimeo, Facebook) en 16:9 */
.pub-media-video {
  aspect-ratio: 16 / 9;
  max-height: none;
  position: relative;
}
.pub-media-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* TikTok fallback (no embed, link al sitio) */
.pub-media-tiktok {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: white !important;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: opacity .2s;
}
.pub-media-tiktok:hover { opacity: .85; color: white; }
.pub-media-tiktok i { font-size: 2rem; }

.pub-footer {
  display: flex;
  border-top: 1px solid var(--border);
  padding: .25rem;
  flex-wrap: wrap;
}
.pub-action {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: .65rem .5rem;
  color: var(--text-light);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: background .15s, color .15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.pub-action:hover { background: var(--bg-alt); color: var(--secondary); }
.pub-action i { font-size: 1.05rem; }
.pub-action-wa:hover { color: var(--whatsapp); }
.pub-action-fb:hover { color: #1877f2; }
.pub-action-ig:hover { color: #e1306c; }

/* En pantallas chicas, sólo iconos */
@media (max-width: 540px) {
  .pub-action span { display: none; }
  .pub-action i { font-size: 1.25rem; }
}

/* ============ MODAL INSTAGRAM ============ */
.ig-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s;
}
.ig-modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: scaleIn .25s;
}
.ig-modal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.ig-modal-box h3 { margin-bottom: .75rem; }
.ig-modal-box p { color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.5; }
.ig-modal-close {
  background: none;
  border: none;
  color: var(--text-light);
  margin-top: 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  text-decoration: underline;
}
@keyframes scaleIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
  .pubs-landing { grid-template-columns: 1fr; }
}

/* ============ EMPTY / ERROR ============ */
.empty-state, .error-page {
  text-align: center;
  padding: 4rem 1rem;
}
.empty-state i, .error-page h1 {
  font-size: 5rem;
  color: var(--border);
  margin-bottom: 1rem;
}
.error-page h1 { color: var(--primary); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .quoter-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }

  .hero { padding: 4rem 0; }
  .section { padding: 3.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .about-stats { grid-template-columns: 1fr; }
}
