/* ==========================================================================
   SD MEMBRANAS - SEBASTIÁN DANIEL FLORIDO
   Estilos CSS Principales (Diseño Premium con Logo Oficial y Galería Real)
   ========================================================================== */

:root {
  /* Brand Color Palette derived from SD Membranas Logo */
  --primary: #05244c;
  --primary-dark: #02142d;
  --primary-light: #1d4ed8;
  --secondary: #ea580c;
  --secondary-hover: #c2410c;
  --accent: #059669;
  --dark-bg: #03152c;
  --dark-card: #082247;
  --light-bg: #f8fafc;
  --light-card: #ffffff;
  --text-main: #334155;
  --text-dark: #0f172a;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  
  /* Layout & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(5, 36, 76, 0.12), 0 8px 10px -6px rgba(5, 36, 76, 0.06);
  --shadow-lg: 0 20px 35px -10px rgba(2, 20, 45, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: #ffffff;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

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

.bg-dark {
  background-color: var(--dark-bg);
  color: #ffffff;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-title .sub-title {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  background: rgba(234, 88, 12, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.section-title p {
  font-size: 1.1rem;
  color: #64748b;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-primary {
  background-color: var(--secondary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: #1ebc57;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-outline-hero {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline-hero:hover {
  background: #ffffff;
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

/* Top Announcement Bar */
.top-bar {
  background-color: #02142d;
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top-contacts {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-contacts a:hover {
  color: #ffffff;
}

.top-wa {
  color: #25d366 !important;
  font-weight: 600;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(5, 36, 76, 0.2);
}

.brand-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.brand-tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--secondary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #02142d 0%, #05244c 100%);
  color: #ffffff;
  padding: 80px 0 100px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(234, 88, 12, 0.5);
  color: #fb923c;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text h1 {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: #fb923c;
  background: linear-gradient(90deg, #fdba74, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Hero Quick Form Card */
.hero-card {
  background: rgba(8, 34, 71, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-logo {
  height: 48px;
  border-radius: 6px;
}

.hero-card h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.hero-card p {
  font-size: 0.85rem;
  color: #94a3b8;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(3, 21, 44, 0.7);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.form-group select option {
  background-color: var(--dark-bg);
  color: #ffffff;
}

/* Feature Highlights Bar */
.highlights {
  background-color: #ffffff;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.highlight-box {
  padding: 15px;
}

.hl-icon {
  width: 50px;
  height: 50px;
  background: rgba(234, 88, 12, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.highlight-box h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.highlight-box p {
  font-size: 0.88rem;
  color: #64748b;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
}

.service-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-content p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 20px;
}

.service-list {
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-list li i {
  color: var(--accent);
  font-size: 0.85rem;
}

.service-link {
  font-weight: 700;
  color: #25d366;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link:hover {
  color: #1ebc57;
  gap: 12px;
}

/* Gallery Section (Obras Realizadas) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 25px;
}

.gallery-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-img-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.08);
}

.gallery-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(5, 36, 76, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-info h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.gallery-info p {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Interactive Before & After Slider */
.ba-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  background: rgba(5, 36, 76, 0.85);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 5;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ba-after .ba-label {
  right: 20px;
}

.ba-before .ba-label {
  left: 20px;
}

.ba-before {
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid #ffffff;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #ffffff;
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: var(--secondary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question i {
  color: var(--secondary);
  transition: var(--transition);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 24px;
  color: #64748b;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px 24px;
}

/* Contact Section */
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.contact-logo {
  height: 56px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.contact-info p {
  color: #64748b;
  margin-bottom: 30px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-item i {
  width: 44px;
  height: 44px;
  background: rgba(5, 36, 76, 0.08);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-item strong {
  display: block;
  color: var(--text-dark);
  font-size: 1rem;
}

.info-item p {
  margin: 0;
  font-size: 0.88rem;
}

.contact-cta-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-md);
  padding: 36px;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-cta-box i {
  font-size: 3.5rem;
  color: #25d366;
  margin-bottom: 16px;
}

.contact-cta-box h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.contact-cta-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* Footer */
.footer {
  background-color: #02142d;
  color: #94a3b8;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 44px;
  border-radius: 4px;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.85rem;
}

.footer-copy {
  font-size: 0.85rem;
}

/* Floating WhatsApp Button */
.floating-wa {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  transition: var(--transition);
  animation: pulseWa 2s infinite;
}

.floating-wa:hover {
  transform: scale(1.1);
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark-bg);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.floating-wa:hover .wa-tooltip {
  opacity: 1;
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid, .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }

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

  .hamburger {
    display: block;
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .hero {
    padding: 40px 0 60px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .ba-slider {
    height: 320px;
  }
}
