/* Hoja de estilos de la landing ALCALD+IA.
   Estilos exclusivos del home: hero, secciones, carrusel, footer y responsive.
   Reset base, tipografía global, variables, navbar, botones y decoraciones → shared-components.css.
   Dependencias: Google Fonts (Oswald, Open Sans), shared-components.css cargado antes. */

/* ===========================================
   HERO SECTION
   =========================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, var(--color-dark), var(--color-primary));
  position: relative;
  padding: 120px 20px 80px;
  text-align: center;
  overflow: hidden;
}

/* Barras decorativas laterales */
.hero-bars {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  z-index: 0;
}

.hero-bars-left {
  left: 0;
  padding-left: 20px;
  align-items: flex-start;
}

.hero-bars-right {
  right: 0;
  padding-right: 20px;
  align-items: flex-end;
}

.bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(0, 168, 181, 0.6));
  transform-origin: left center;
}

.hero-bars-left .bar {
  transform: skewY(-15deg);
}

.hero-bars-right .bar {
  transform: skewY(15deg);
  background: linear-gradient(90deg, rgba(0, 168, 181, 0.6), rgba(255, 255, 255, 0.8));
}

.bar-1 {
  width: 80px;
  opacity: 0.9;
  animation: slideInLeft 1s ease 0.2s both;
}

.bar-2 {
  width: 100px;
  opacity: 0.7;
  animation: slideInLeft 1s ease 0.4s both;
}

.bar-3 {
  width: 60px;
  opacity: 0.5;
  animation: slideInLeft 1s ease 0.6s both;
}

.bar-4 {
  width: 90px;
  opacity: 0.6;
  animation: slideInLeft 1s ease 0.8s both;
}

.hero-bars-right .bar-1 {
  animation-name: slideInRight;
}

.hero-bars-right .bar-2 {
  animation-name: slideInRight;
}

.hero-bars-right .bar-3 {
  animation-name: slideInRight;
}

.hero-bars-right .bar-4 {
  animation-name: slideInRight;
}

/* Patrón de puntos — sobreescritura hero (base en shared-components.css) */
#hero .dots-pattern {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
}

#hero .dots-top-left {
  top: 15%;
  left: 8%;
  animation: fadeIn 1.5s ease 0.5s both;
}

#hero .dots-bottom-right {
  bottom: 20%;
  right: 8%;
  animation: fadeIn 1.5s ease 0.7s both;
}

#hero .dots-middle-left {
  top: 55%;
  left: 5%;
  animation: fadeIn 1.5s ease 0.9s both;
}

/* Círculos decorativos — sobreescritura hero (base en shared-components.css) */
#hero .hero-circle {
  border-color: rgba(255, 255, 255, 0.15);
}

#hero .hero-circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: pulse 4s ease-in-out infinite;
}

#hero .hero-circle-2 {
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: -80px;
  border-color: rgba(0, 168, 181, 0.2);
  animation: pulse 5s ease-in-out infinite 1s;
}

#hero .hero-circle-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 15%;
  border-color: rgba(255, 255, 255, 0.1);
  animation: pulse 3s ease-in-out infinite 0.5s;
}

.hero-content {
  max-width: 800px;
  color: var(--color-white);
  z-index: 2;
  position: relative;
}

.hero-logo {
  width: 220px;
  margin-bottom: 35px;
  animation: fadeInDown 1s ease;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
}

#hero h1 {
  font-size: 3.2rem;
  margin-bottom: 25px;
  animation: fadeInUp 1s ease 0.3s both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: 2px;
}

.hero-description {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 45px;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.5s both;
  line-height: 1.7;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.7s both;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ===========================================
   SECCIONES GENERALES
   =========================================== */
section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Asegurar que las secciones tengan position relative */
#sobre,
#producto,
#portal,
#clientes,
#sobre-nosotros,
#contacto {
  position: relative;
  overflow: hidden;
}

/* Barras en sección contacto */
.contact-bars {
  position: absolute;
  opacity: 0.4;
}

.contact-bars .bar {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(0, 168, 181, 0.3));
}

/* ===========================================
   SOBRE (Explicación)
   =========================================== */
#sobre {
  background-color: var(--color-white);
}

.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1rem;
}

.hex-icon {
  color: var(--color-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sobre-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--sombra-hover);
}

.hex-large {
  font-size: 5rem;
  color: var(--color-white);
  margin-bottom: 15px;
}

.image-placeholder p {
  color: var(--color-white);
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
}

/* ===========================================
   PRODUCTO (Características)
   =========================================== */
#producto {
  background-color: var(--color-light-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: var(--transicion);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--sombra-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===========================================
   PORTAL (Carrusel)
   =========================================== */
#portal {
  background-color: var(--color-white);
}

.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--sombra-hover);
  background: var(--color-dark);
}

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

.slide {
  min-width: 100%;
  height: auto;
  position: relative;
}

.slide img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  background: var(--color-secondary);
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 62, 92, 0.95), rgba(0, 62, 92, 0.8) 60%, transparent);
  color: var(--color-white);
  padding: 40px 30px 25px;
  text-align: center;
}

.slide-caption h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slide-caption p {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 300;
}

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0, 168, 181, 0.9);
  color: var(--color-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transicion);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
  background: var(--color-dark);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transicion);
}

.carousel-dot.active {
  background: var(--color-primary);
}

/* Beneficios del Portal */
.portal-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.benefit-card {
  background: var(--color-white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--sombra);
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.benefit-card.benefit-contribuyente::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
}

.benefit-card.benefit-municipio::before {
  background: linear-gradient(90deg, var(--color-dark), var(--color-primary));
}

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

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.benefit-card h3 {
  color: var(--color-dark);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.benefit-card ul {
  list-style: none;
  padding: 0;
}

.benefit-card li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-secondary);
}

.benefit-card li:last-child {
  border-bottom: none;
}

.benefit-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.benefit-card li strong {
  color: var(--color-primary);
  font-size: 1.1em;
}

/* Info de pagos */
.portal-payment-info {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.payment-current {
  background: linear-gradient(135deg, var(--color-light-bg), #ffffff);
  border: 2px solid var(--color-primary);
  border-radius: 15px;
  padding: 25px 35px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  max-width: 550px;
}

.payment-current-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.payment-logo {
  height: 45px;
  width: auto;
}

.payment-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  white-space: nowrap;
  justify-content: center;
}

.payment-icon {
  font-size: 1.3rem;
}

.payment-current p {
  color: var(--color-text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.payment-current p strong {
  color: var(--color-dark);
}

.payment-future {
  background: var(--color-secondary);
  border-radius: 15px;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 0 1 280px;
}

.future-badge {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.payment-future p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.demo-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 22px;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}

.demo-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1rem;
  line-height: 1;
}

.payment-demo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.payment-demo-note {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

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

/* ===========================================
   CLIENTES
   =========================================== */
#clientes {
  background-color: var(--color-secondary);
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.cliente-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: var(--transicion);
}

.cliente-card:hover {
  transform: scale(1.05);
  box-shadow: var(--sombra-hover);
}

.cliente-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.cliente-card p {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: var(--color-dark);
}

/* ===========================================
   INSTITUCIONAL
   =========================================== */
#sobre-nosotros {
  background-color: var(--color-light-bg);
}

.institucional-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.institucional-text p {
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.comparativa-table {
  background: var(--color-white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--sombra);
  overflow: hidden;
}

.comparativa-table h3 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--color-dark);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 15px 12px;
  text-align: center;
  border-bottom: 1px solid var(--color-secondary);
  word-wrap: break-word;
}

th {
  background-color: var(--color-dark);
  color: var(--color-white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

th:first-child {
  border-radius: 8px 0 0 0;
  width: 30%;
}

th:nth-child(2) {
  width: 35%;
}

th:last-child {
  border-radius: 0 8px 0 0;
  width: 35%;
}

tr:nth-child(even) {
  background-color: var(--color-secondary);
}

td:last-child {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===========================================
   CONTACTO
   =========================================== */
#contacto {
  background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
  color: var(--color-white);
}

.contacto-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contacto-info {
  display: flex;
  flex-direction: column;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.contacto-icon {
  font-size: 2rem;
}

.contacto-item h4 {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.contacto-item a {
  font-size: 1.1rem;
  color: var(--color-white);
}

.contacto-item a:hover {
  color: var(--color-primary);
}

.contacto-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: var(--transicion);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contacto-form .btn-primary {
  width: 100%;
}

.contacto-form .btn-primary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  width: 150px;
  margin-bottom: 15px;
}

.footer-brand p {
  opacity: 0.8;
}

.footer-links h4,
.footer-contact h4,
.footer-demo h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.footer-links ul,
.footer-demo ul {
  list-style: none;
}

.footer-links li,
.footer-demo li {
  margin-bottom: 10px;
}

.footer-links a:hover,
.footer-demo a:hover {
  color: var(--color-primary);
}

.footer-contact p {
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ===========================================
   WHATSAPP FLOTANTE
   =========================================== */
/* Botón flotante compartido movido a shared-components.css. */

/* ===========================================
   ANIMACIONES
   =========================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px) skewY(-15deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) skewY(-15deg);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px) skewY(15deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) skewY(15deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.15;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.25;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================
   RESPONSIVE - Tablet
   =========================================== */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre-content,
  .institucional-content,
  .contacto-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sobre-image {
    order: -1;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  /* Reducir decoraciones en tablet */
  .hero-bars {
    width: 80px;
  }

  .bar-1 {
    width: 50px;
  }

  .bar-2 {
    width: 70px;
  }

  .bar-3 {
    width: 40px;
  }

  .bar-4 {
    width: 60px;
  }

  #hero .hero-circle-1 {
    width: 300px;
    height: 300px;
  }

  #hero .hero-circle-3 {
    display: none;
  }

  #hero .dots-pattern {
    width: 80px;
    height: 80px;
  }
}

/* ===========================================
   RESPONSIVE - Tablet y Desktop
   =========================================== */
@media (min-width: 768px) {
  .footer-logo {
    margin-left: 2rem;
  }
}

/* ===========================================
   RESPONSIVE - Mobile
   =========================================== */
@media (max-width: 768px) {

  /* Hero decoraciones mobile */
  .hero-bars {
    opacity: 0.3;
  }

  #hero .dots-pattern {
    opacity: 0.15;
  }

  #hero .dots-pattern:first-of-type {
    width: 80px;
    height: 80px;
    top: 120px;
    right: 20px;
    left: auto;
  }

  #hero .dots-pattern:last-of-type {
    display: none;
  }

  #hero .hero-circle {
    display: none;
  }

  /* Hero Mobile */
  #hero {
    padding: 100px 15px 60px;
  }

  #hero h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 35px;
  }

  .hero-logo {
    width: 160px;
    margin-bottom: 25px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Sections */
  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Portal Benefits Mobile */
  .portal-benefits {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .benefit-card {
    padding: 25px 20px;
  }

  .benefit-icon {
    font-size: 2rem;
  }

  .benefit-card h3 {
    font-size: 1.15rem;
  }

  .benefit-card li {
    font-size: 0.9rem;
    padding: 8px 0 8px 22px;
  }

  .portal-payment-info {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }

  .payment-current {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    max-width: 100%;
  }

  .payment-current-copy {
    align-items: center;
  }

  .payment-current p {
    font-size: 0.9rem;
  }

  .payment-future {
    flex: 1;
    padding: 20px;
  }

  .payment-demo-note {
    font-size: 0.95rem;
  }

  /* Clientes */
  .clientes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Carousel Mobile */
  .slide img {
    max-height: 350px;
  }

  .slide-caption {
    padding: 30px 20px 20px;
    position: relative;
    background: var(--color-dark);
  }

  .slide-caption h4 {
    font-size: 1.1rem;
  }

  .slide-caption p {
    font-size: 0.85rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    top: 35%;
  }

  .carousel-dots {
    padding: 15px 0;
    background: var(--color-dark);
  }

  /* Table Responsive - Card Layout */
  .comparativa-table {
    padding: 20px;
    overflow: visible;
  }

  .comparativa-table h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  table {
    min-width: 0;
  }

  tr {
    background: var(--color-secondary);
    margin-bottom: 15px;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  tr:nth-child(even) {
    background: var(--color-secondary);
  }

  td {
    padding: 8px 0;
    text-align: left;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
  }

  td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-dark);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    flex: 0 0 45%;
    text-align: left;
  }

  td:first-child {
    background: var(--color-dark);
    color: var(--color-white);
    margin: -15px -15px 10px -15px;
    padding: 12px 15px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    display: block;
    text-align: center;
  }

  td:first-child::before {
    display: none;
  }

  td:last-child {
    color: var(--color-primary);
    font-weight: 600;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-links,
  .footer-contact,
  .footer-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* WhatsApp */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}

/* ===========================================
   RESPONSIVE - Mobile Small
   =========================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  #hero h1 {
    font-size: 1.6rem;
  }

  .contacto-form {
    padding: 25px;
  }

  .image-placeholder {
    width: 250px;
    height: 250px;
  }
}