/**
 * HOJA DE ESTILOS PRINCIPAL - GRÚAS PAREDES GUATEMALA
 * Arquitectura: Mobile-First, Variables CSS, Alto Contraste y Rendimiento
 */

:root {
  --color-primary-dark: #0F172A;
  --color-secondary-dark: #1E293B;
  --color-accent: #F59E0B;
  --color-accent-hover: #D97706;
  --color-whatsapp: #16A34A;
  --color-whatsapp-hover: #15803D;
  --color-danger: #DC2626;
  --color-light: #F8FAFC;
  --color-white: #FFFFFF;
  --color-text-main: #0F172A;
  --color-text-muted: #475569;
  --color-border: #E2E8F0;
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.25);
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-light);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.top-bar {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.top-bar-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.badge-247 {
  background: var(--color-primary-dark);
  color: var(--color-accent);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-right: 0.4rem;
}

.top-bar-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-bar-links a:hover {
  text-decoration: underline;
}

.site-header {
  background-color: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 62px;
  width: 62px;
  object-fit: contain;
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 3px;
  border: 2px solid var(--color-accent);
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background-color: var(--color-primary-dark);
  padding: 1.5rem;
  gap: 1rem;
  border-bottom: 3px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.nav-menu.active {
  display: flex;
}

.nav-link {
  font-weight: 600;
  color: #E2E8F0;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.nav-link:hover, .nav-link:focus {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.menu-toggle {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
  transition: var(--transition);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
}

.btn-call {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-call:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
}

.btn-primary-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-primary-dark:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-2px);
}

.hero-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: var(--color-white);
  padding: 3.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--color-accent);
}

.hero-description {
  font-size: 1.125rem;
  color: #CBD5E1;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-info-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: #E2E8F0;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  background-color: #FFFFFF;
  max-width: 520px;
  margin: 0 auto;
}

.trust-bar {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--color-light);
  border: 1px solid var(--color-border);
}

.trust-icon {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.trust-item p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.section {
  padding: 4.5rem 0;
}

.section-bg-white {
  background-color: var(--color-white);
}

.section-bg-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  color: #B45309;
  background: #FEF3C7;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.service-img-wrapper {
  position: relative;
  height: 200px;
  background: var(--color-secondary-dark);
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.service-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  color: var(--color-primary-dark);
}

.service-body p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-actions {
  display: flex;
  gap: 0.6rem;
}

.service-actions .btn {
  flex: 1;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.about-box {
  background: var(--color-light);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.about-box h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  border-left: 4px solid var(--color-accent);
  padding-left: 0.75rem;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.mvv-card {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-accent);
}

.mvv-card h3 {
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.value-item {
  background: var(--color-white);
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.value-item h4 {
  color: var(--color-primary-dark);
  margin-bottom: 0.4rem;
}

.carousel-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-primary-dark);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 420px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
  color: var(--color-white);
  padding: 2rem 1.5rem 1.5rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 10;
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--color-secondary-dark);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64748B;
  border: none;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.gallery-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.gallery-thumb-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: zoom-in;
  position: relative;
  background: var(--color-secondary-dark);
}

.gallery-thumb-item:hover {
  border-color: var(--color-accent);
}

.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  background: var(--color-secondary-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-accent);
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: var(--color-danger);
  color: var(--color-white);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.form-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-primary-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.hp-field {
  display: none !important;
  visibility: hidden !important;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.form-status.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-border);
  height: 360px;
  margin-top: 1.5rem;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: var(--color-white);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 1500;
  font-weight: 800;
  font-size: 0.95rem;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  background-color: #1EBE5D;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.site-footer {
  background-color: #090E17;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-secondary-dark);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    align-items: center;
    gap: 1.25rem;
  }
  .nav-cta-group {
    flex-direction: row;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
