/* ========================================
   ZONDA - STYLES.CSS
   Optimized CSS - v2.0
   ======================================== */

/* CSS Variables */
:root {
  --color-basico: #c2523f;
  --color-no-basico: #df1a38;
  --color-liteplus: #6c3a64;
  --color-pro: #192a58;
  --color-texto: #333;
  --color-fondo: #f9f9f9;
  --color-borde: #ddd;

  --color-dark-blue: #152538;
  --color-median-blue: #15244b;
  --color-light-blue: #1d2d83;
  --color-dark-lila: #4a2e84;
  --color-light-lila: #6c3a74;
  --color-deep-rose: #9e4653;
  --color-terracotta: #c2523f;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-dark-blue {
  color: var(--color-dark-blue);
}
.text-median-blue {
  color: var(--color-median-blue);
}
.text-light-blue {
  color: var(--color-light-blue);
}
.text-dark-lila {
  color: var(--color-dark-lila);
}
.text-light-lila {
  color: var(--color-light-lila);
}
.text-deep-rose {
  color: var(--color-deep-rose);
}
.text-terracotta {
  color: var(--color-terracotta);
}

.bg-dark-blue {
  background-color: var(--color-dark-blue);
}
.bg-median-blue {
  background-color: var(--color-median-blue);
}
.bg-light-blue {
  background-color: var(--color-light-blue);
}
.bg-dark-lila {
  background-color: var(--color-dark-lila);
}
.bg-light-lila {
  background-color: var(--color-light-lila);
}
.bg-deep-rose {
  background-color: var(--color-deep-rose);
}
.bg-terracotta {
  background-color: var(--color-terracotta);
}

.border-pro {
  border-bottom: 2px solid var(--color-pro);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-texto);
  background-color: var(--color-dark-blue);
  padding: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 1020;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1,
h2 {
  color: #2c3e50;
  margin-bottom: 4px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

/* Top contact bar - línea azul superior */
.top-contact-bar {
  background: linear-gradient(90deg, var(--color-dark-blue), var(--color-median-blue));
  padding: 0 80px;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.top-contact-bar .contact-info {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  margin-right: 20px;
}

.top-contact-bar .contact-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.top-contact-bar .contact-link:hover {
  color: var(--color-terracotta);
}

.top-contact-bar .contact-link i {
  font-size: 19px;
  color: var(--color-terracotta);
}

.top-contact-bar .social-links-top {
  display: flex;
  gap: 15px;
  align-items: center;
}

.top-contact-bar .social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-terracotta);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.top-contact-bar .social-icon:hover {
  background-color: var(--color-terracotta);
  transform: translateY(-2px);
}

/* Navbar principal blanca */
.header-navbar {
  background-color: white;
  padding: 10px 80px;
  margin: 0;
  height: 92px;
}



.header-navbar .navbar-brand img {
  transition: transform 3s ease;
  height: auto;
  width: 200px;
}

.header-navbar .nav-link {
  color: var(--color-dark-blue);
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}


.header-navbar .nav-link:hover {
  color: var(--color-terracotta);
}

.header-navbar .nav-link:hover::after {
  width: 60%;
}

.navbar-collapse {
  justify-content: center;

}

.navbar-btn {
  position: relative;
}

/* Botón DEMO GRATUITA */
.btn-demo {
  background: var(--color-light-blue);
  color: white !important;
  padding: 10px 25px;
  margin-left: 20px;
  margin-right: 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 1s ease;
  border: none;
}

.btn-demo:hover {
  background: linear-gradient(135deg, #d64736, var(--color-terracotta));
  transition: all 1s ease;
}

.btn-demo::after {
  display: none;
}

/* Línea terracotta inferior */
.navbar-bottom-line {
  height: 11px;
  background: linear-gradient(90deg, var(--color-terracotta), #d64736);
  box-shadow: 0 2px 8px rgba(194, 82, 63, 0.2);
}

/* Navbar toggler personalizado */
.header-navbar .navbar-toggler {
  padding: 8px 12px;
}

.header-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(19, 35, 54, 0.25);
}

.header-navbar .navbar-toggler-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.header-navbar .navbar-nav {
  gap: 2rem; /* Separación consistente entre items */
}

/* Línea vertical entre elementos, inicia a partir del segundo */
.header-navbar .navbar-nav .nav-item + .nav-item {
  position: relative;
}

.header-navbar .navbar-nav .nav-item + .nav-item::before {
  content: "";
  position: absolute;
  left: -1rem; /* ubicamos la línea entre los items (coincide con gap) */
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background-color: rgba(19, 35, 54, 0.6); /* azul oscuro semi-transparente */
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet y menú colapsado */
@media (max-width: 991.98px) {
  .header-navbar .navbar-nav {
    gap: 0;
    background-color: rgba(255, 255, 255, 0.9);
  }
  
  .header-navbar .navbar-btn {
    width: 100%;
  }
  
  .header-navbar .navbar-nav .nav-item + .nav-item::before {
    display: none;
  }
}

.header-navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9) !important;
  transition: background-color 0.3s ease;
}

/* ========================================
   COMPARISON SECTION
   ======================================== */
.comparacion {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 0 10vw 30px 10vw;
  margin: 0;
  /* background: linear-gradient(180deg, white, var(--color-fondo)); */
  
}

.sistema {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sistema-header {
  padding: 15px 20px;
  color: white;
  font-weight: bold;
  font-size: 1.5em;
}

.sistema-basico .sistema-header {
  background: linear-gradient(
    90deg,
    var(--color-dark-blue),
    var(--color-light-blue)
  );
}
.sistema-basico {
  border: 1px solid rgba(12, 47, 246, 0.3);
}

.sistema-liteplus {
  border: 1px solid rgba(9, 30, 149, 0.3);
}

.sistema-pro {
  border: 1px solid rgba(213, 115, 35, 0.3);
}

.sistema-liteplus .sistema-header {
  background: linear-gradient(
    90deg,
    var(--color-dark-blue),
    var(--color-light-blue)
  );
}

.sistema-pro .sistema-header {
  background: linear-gradient(
    90deg,
    var(--color-dark-blue) 30%,
    var(--color-terracotta)
  );
}

/* Toggle All Modules Button */
.toggle-all-modules-btn {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-all-modules-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toggle-all-modules-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.toggle-all-modules-btn .toggle-icon {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.toggle-all-modules-btn.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.toggle-all-modules-btn .toggle-text {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.sistema-header {
  position: relative;
}

.modulo {
  margin-bottom: 0;
  padding-bottom: 0;
}

.modulo:last-child {
  border-bottom: none;
}

.modulo-titulo {
  font-weight: bold;
  margin-bottom: 2px;
  padding: 8px 15px;
  background-color: #07368222;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modulo-titulo:hover {
  background-color: #07285d50;
}

.modulo-titulo::after {
  content: "▼";
  font-size: 0.8em;
  transition: transform 0.3s ease;
  color: #666;
}

.modulo-titulo.collapsed::after {
  transform: rotate(-90deg);
}

.modulo-contenido {
  transition: all 0.3s ease;
  overflow: hidden;
}

.modulo-contenido.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.caracteristica {
  padding: 5px 15px;
  position: relative;
  padding-left: 25px;
}

.caracteristica:before {
  content: "✓";
  position: absolute;
  left: 10px;
  color: var(--color-basico);
}

.no-caracteristica {
  padding: 5px 15px;
  position: relative;
  padding-left: 25px;
}

.no-caracteristica:before {
  content: "✗";
  position: absolute;
  left: 10px;
  color: var(--color-no-basico);
}

.sistema-liteplus .caracteristica:before {
  color: var(--color-liteplus);
}

.sistema-pro .caracteristica:before {
  color: var(--color-pro);
}

.destacado {
  background-color: rgba(255, 255, 0, 0.1);
  padding: 8px 15px;
  border-radius: 4px;
  margin: 5px 15px;
  font-weight: bold;
}

.sistema-liteplus .destacado {
  background-color: rgba(155, 89, 182, 0.1);
}

.sistema-pro .destacado {
  background-color: rgba(46, 204, 113, 0.1);
}

/* Enhanced modulo-titulo styles for better accessibility */
.modulo-titulo:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
  background-color: #d0d0d0;
}

.modulo-titulo:active {
  background-color: #c0c0c0;
}

/* Animation for collapse icons */
.modulo-titulo::after {
  transition: transform 0.3s ease, color 0.2s ease;
}

.modulo-titulo:hover::after {
  color: #333;
}

/* Tablet y móvil */
@media (max-width: 768px) {
  /* Comparación de sistemas */
  .comparacion {
    flex-direction: column;
    align-items: center;
    padding: 0 20px 30px 20px;
  }

  .sistema {
    width: 100%;
  }

  .modulo-titulo {
    font-size: 0.9rem;
    padding: 12px 15px;
  }

  .modulo-titulo::after {
    font-size: 0.7rem;
  }

  /* Toggle button */
  .toggle-all-modules-btn {
    position: static;
    transform: none;
    margin: 10px auto 0;
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  .toggle-all-modules-btn:hover {
    transform: scale(1.05);
  }

  .toggle-all-modules-btn:active {
    transform: scale(0.98);
  }

  .sistema-header {
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Header y navbar */
  .top-contact-bar {
    font-size: 0.75rem;
    padding: 6px 0;
  }

  .top-contact-bar .contact-info {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .top-contact-bar .contact-link span {
    font-size: 0.75rem;
  }

  .top-contact-bar .social-links-top {
    margin-top: 5px;
  }

  .header-navbar {
    padding: 8px 0;
  }

  .header-navbar .navbar-nav {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(19, 35, 54, 0.1);
  }

  .header-navbar .nav-item {
    text-align: center;
    margin: 5px 0;
  }

  .btn-demo {
    width: 100%;
    margin-top: 10px;
  }
  
  /* Footer */
  .zonda-footer {
    padding: 40px 0 0 0;
  }

  .footer-logo {
    max-width: 150px;
  }

  .footer-description {
    font-size: 0.9rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom .row {
    text-align: center;
  }

  .footer-bottom .col-md-4 {
    margin-top: 15px;
  }

  /* Formulario de contacto */
  .contact-form-wrapper {
    padding: 25px 20px;
  }

  .contact-submit-btn {
    width: 100%;
    margin-top: 10px;
  }

  .contact-info-card {
    margin-bottom: 20px;
  }

  /* Mockups */
  .mockups-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .mockup-card {
    max-width: 100% !important;
  }
}

/* Móvil pequeño */
@media (max-width: 576px) {
  /* Formulario de contacto */
  .contact-form-wrapper {
    padding: 20px 15px;
  }

  .contact-form .form-floating > .form-control,
  .contact-form .form-floating > .form-select {
    font-size: 0.9rem;
  }

  .contact-submit-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }

  /* Mockups */
  .mockups-header h3 {
    font-size: 1.8rem;
  }

  .mockup-info h4 {
    font-size: 1.1rem;
  }

  .mockup-info p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  /* Módulos */
  .modulo-titulo {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .caracteristica,
  .no-caracteristica,
  .destacado {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  /* Toggle button */
  .toggle-all-modules-btn {
    font-size: 0.65rem;
    padding: 4px 10px;
    gap: 4px;
  }

  .toggle-all-modules-btn .toggle-icon {
    font-size: 0.6rem;
  }

  /* Navbar móvil pequeño */
  .top-contact-bar .contact-info {
    gap: 5px;
  }

  .top-contact-bar .contact-link {
    gap: 5px;
    font-size: 0.7rem;
  }

  .top-contact-bar .contact-link i {
    font-size: 0.75rem;
  }

  .top-contact-bar .social-icon {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .btn-demo {
    font-size: 0.85rem;
    padding: 8px 20px;
  }

  .navbar-bottom-line {
    height: 3px;
  }
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.zonda-footer {
  background: linear-gradient(180deg, var(--color-dark-blue) 30%, black);
  padding: 60px 0 0 0;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 80px 40px 80px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  max-width: 300px;
  height: auto;
}

.footer-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 14px;
  padding: 0 80px;
}

.footer-description strong {
  color: white;
}

.footer-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-contact-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-map {
  margin-bottom: 20px;
}

.footer-map iframe {
  border-radius: 8px;
  width: 100%;
  height: 100px;
}

.footer-contact-info {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  color: white;
  font-size: 1rem;
  margin-bottom: 10px;
}

.contact-item i {
  font-size: 1.1rem;
  margin-right: 10px;
  color: var(--color-terracotta);
}

.contact-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--color-terracotta);
}

.contact-icon {
  width: 20px;
  margin-right: 12px;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
}

.social-link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-link.facebook,
.social-link.instagram,
.social-link.youtube {
  background-color: var(--color-terracotta);
  color: white;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
  background-color: var(--color-terracotta);
  padding: 20px 0;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  text-align: center;
  color: white;
  font-size: 0.8rem;
}

.footer-link {
  color: white;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-light-blue);
  text-decoration: underline;
}

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background-color: var(--color-light-blue);
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.scroll-top-btn:hover {
  background-color: var(--color-median-blue);
}

/* ========================================
   CONTACT FORM STYLES
   ======================================== */
.contact-form-wrapper {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-floating > .form-control,
.contact-form .form-floating > .form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.contact-form .form-floating > .form-control:focus,
.contact-form .form-floating > .form-select:focus {
  border-color: var(--color-light-blue);
  box-shadow: 0 0 0 0.2rem rgba(29, 45, 131, 0.25);
}

.contact-form .form-floating > label {
  color: #6c757d;
  font-weight: 500;
  padding: 0 8px;
}

.contact-form .form-floating > .form-control:focus ~ label,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
.contact-form .form-floating > .form-select:focus ~ label,
.contact-form .form-floating > .form-select:not([value=""]) ~ label {
  color: var(--color-light-blue);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.contact-form .form-text {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 6px;
}

.contact-form .form-check {
  margin-bottom: 0;
}

.contact-form .form-check-input {
  border: 2px solid #dee2e6;
  border-radius: 4px;
}

.contact-form .form-check-input:checked {
  background-color: var(--color-light-blue);
  border-color: var(--color-light-blue);
}

.contact-form .form-check-label {
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-form .form-check-label a {
  color: var(--color-light-blue);
}

.contact-form .form-check-label a:hover {
  color: var(--color-median-blue);
}

.contact-submit-btn {
  background: linear-gradient(
    135deg,
    var(--color-light-blue),
    var(--color-median-blue)
  );
  border: none;
  border-radius: 25px;
  padding: 14px 40px;
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 200px;
  transition: all 0.3s ease;
}

.contact-submit-btn:hover {
  background: linear-gradient(
    135deg,
    var(--color-median-blue),
    var(--color-dark-blue)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 45, 131, 0.3);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-message .alert {
  border: none;
  border-radius: 10px;
  font-weight: 500;
}

.form-message .alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #155724;
  border-left: 4px solid #28a745;
}

.form-message .alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* ========================================
   CONTACT INFO CARDS
   ======================================== */
.contact-info-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-light-blue),
    var(--color-median-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.contact-icon-wrapper i {
  color: white;
  font-size: 1.5rem;
}

.contact-info-card h5 {
  color: var(--color-dark-blue);
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-info-card p {
  color: #6c757d;
  margin-bottom: 0;
}

/* Form Validation States */
.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form .form-control.is-valid,
.contact-form .form-select.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.contact-form .invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 5px;
}

.contact-form .valid-feedback {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 5px;
}

/* ========================================
   MOCKUPS SECTION STYLES
   ======================================== */
.mockups-section {
  padding: 30px 0 140px 0 ;
  border-top: 0.8rem solid var(--color-terracotta);
  background: linear-gradient(180deg, var(--color-dark-blue), var(--color-median-blue));
}

.mockups-header {
  text-align: center;
  margin-bottom: 50px;
}

.mockups-header h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mockups-header p {
  color: var(--color-terracotta);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.mockups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 80px;
  align-items: start;
}

.mockup-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 450px;
  margin: 0 auto;
  width: 100%;
}

.mockup-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.mockup-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* Aspect ratio 4:3 */
  overflow: hidden;
}

.mockup-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.mockup-card:hover .mockup-img {
  transform: translate(-50%, -50%) scale(1.05);
}

.mockup-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(19, 35, 54, 0.95) 0%,
    rgba(19, 35, 54, 0.85) 60%,
    transparent 100%
  );
  padding: 30px 25px 25px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-card:hover .mockup-overlay {
  transform: translateY(0);
}

.mockup-info {
  color: white;
}

.mockup-info h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
  letter-spacing: 0.5px;
}

.mockup-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Animation on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mockup-card {
  animation: fadeInUp 0.6s ease-out;
}

.mockup-card:nth-child(1) {
  animation-delay: 0.1s;
}

.mockup-card:nth-child(2) {
  animation-delay: 0.2s;
}

.mockup-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* ========================================
   GALLERY MODAL
   ======================================== */

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content {
  position: relative;
  background-color: transparent;
  margin: auto;
  padding: 40px 20px;
  width: 90%;
  max-width: 1200px;
  animation: slideDown 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #fff;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.gallery-close:hover,
.gallery-close:focus {
  color: var(--color-terracotta);
  transform: scale(1.1);
}

.gallery-title {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 700;
}

.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-image-wrapper {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.gallery-counter {
  color: white;
  font-size: 1.1rem;
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
}

.gallery-nav {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 20px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gallery-nav:hover {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  transform: scale(1.1);
}

.gallery-nav:active {
  transform: scale(0.95);
}

.gallery-nav.prev {
  margin-right: auto;
}

.gallery-nav.next {
  margin-left: auto;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.gallery-thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumbnail.active {
  border-color: var(--color-terracotta);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-modal-content {
    padding: 20px 10px;
    width: 95%;
  }

  .gallery-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .gallery-container {
    flex-direction: column;
    gap: 15px;
  }

  .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    padding: 15px 10px;
    font-size: 1.2rem;
  }

  .gallery-nav.prev {
    left: 10px;
    margin-right: 0;
  }

  .gallery-nav.next {
    right: 10px;
    margin-left: 0;
  }

  .gallery-image {
    max-height: 60vh;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 60px;
  }

  .gallery-close {
    font-size: 35px;
    right: 15px;
  }
}

/* Make mockup cards clickable */
.mockup-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.mockup-card:hover {
  transform: translateY(-8px);
}

