/* Modern Design Styles for index2.html */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
  z-index: 130;
  position: relative;
  color: rgba(11, 18, 32, 0.9);
}

.mobile-menu-toggle:hover {
  background: rgba(11, 102, 255, 0.1);
}

.mobile-menu-toggle svg {
  display: block;
  color: currentColor;
}

.mobile-menu-toggle.active svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active svg line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu-toggle svg line {
  transition: all 0.3s ease;
  transform-origin: center center;
}

/* Responsive Contact Section */
@media (max-width: 768px) {
  /* Ajustar posición del botón de tema en móvil */
  .theme-toggle-fab {
    top: 120px !important;
    right: 10px !important;
    z-index: 100 !important;
    transition: top 0.3s ease;
  }
  
  .theme-toggle-fab.scrolled {
    top: 20px !important;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .simple-menu {
    position: fixed;
    top: 70px;
    right: 0;
    width: 280px;
    max-width: 85vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(11, 18, 32, 0.1);
    border-bottom: 1px solid rgba(11, 18, 32, 0.1);
    padding: 24px 0;
    box-shadow: -4px 4px 24px rgba(11, 18, 32, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 110;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    display: flex !important;
    flex-direction: column;
  }
  
  .simple-menu.active {
    transform: translateX(0);
  }
  
  .simple-menu li {
    margin: 0;
    width: 100%;
  }
  
  .simple-menu a {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border-radius: 0;
    color: rgba(11, 18, 32, 0.9);
  }
  
  .simple-menu a:hover {
    background: rgba(11, 102, 255, 0.08);
    color: rgba(11, 18, 32, 0.95);
  }
  
  body.theme-dark .simple-menu {
    background: rgba(15, 23, 42, 0.98);
    border-left-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  body.theme-dark .mobile-menu-toggle {
    color: rgba(255, 255, 255, 0.9);
  }
  
  body.theme-dark .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  #contact .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .simple-nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Enhanced Header Styles */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 22px;
  transition: all 0.3s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 40px 70px;
  border-radius: 8px;
  border-color: transparent;

}

.brand .logo img {
  display: block;
  background: white;
  border-radius: 10px;
}

.brand-text {
  display: inline-block;
  background: linear-gradient(135deg, rgb(142, 166, 247) 0%,var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.nav-link-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all .3s ease;
}

.nav-link-icon:hover {
  background: rgba(37,99,235,.08);
  color: var(--brand);
}

.nav-link-icon svg {
  transition: transform .3s ease;
}

.nav-link-icon:hover svg {
  transform: translateY(-2px);
}

.nav-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-left: 8px;
}

.nav-btn-icon svg {
  width: 18px;
  height: 18px;
}

/* Hero Section */
.hero-fullwidth {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,.75) 0%, rgba(79,70,229,.70) 100%),
              url('../img/products/product_1.jpg') center/cover;
  color: white;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-fullwidth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-fullwidth h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.hero-fullwidth .lead {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
  margin: 0 0 40px;
  color: rgba(255,255,255,.98);
  max-width: 650px;
  text-shadow: 0 1px 10px rgba(0,0,0,.2);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero {
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all .3s ease;
  border: 2px solid transparent;
}

.btn-hero.primary {
  background: white;
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.btn-hero.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}

.btn-hero.secondary {
  background: rgba(255,255,255,.15);
  color: white;
  border-color: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
}

.btn-hero.secondary:hover {
  background: rgba(255,255,255,.25);
  border-color: white;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,.3);
  max-width: 900px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: white;
  text-shadow: 0 2px 15px rgba(0,0,0,.2);
}

.stat-label {
  font-size: 16px;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,249,252,.95));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transform: scaleX(0);
  transition: transform .4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,99,235,.25);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.feature-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--ink);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 16px;
}

/* Split Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse > * {
  direction: ltr;
}

.split-content h2 {
  font-size: clamp(32px, 4vw, 42px);
  margin: 0 0 20px;
  line-height: 1.2;
  color: var(--ink);
}

.split-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.split-content ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.split-content li {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--ink);
}

.split-content li svg {
  width: 24px;
  height: 24px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.split-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Product Cards */
.product-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s ease;
}

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

.product-image {
  aspect-ratio: 4/3;
  background: var(--paper);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.product-info {
  padding: 24px;
}

.product-info h3 {
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink);
}

.product-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 16px;
  color: white;
  position: relative;
  z-index: 2;
}

.cta-section p {
  font-size: 20px;
  margin: 0 0 32px;
  color: rgba(255,255,255,.95);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

/* Simple Header */
.simple-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(26,32,44,.04);
}

.simple-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0px 0 0px;
}

.simple-nav .brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.simple-menu {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.simple-menu a {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: all .2s ease;
}

.simple-menu a:hover {
  background: rgba(37,99,235,.08);
  color: var(--brand);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-fullwidth {
    min-height: 70vh;
    padding: 100px 0 60px;
  }
  
  .hero-fullwidth h1 {
    font-size: clamp(32px, 8vw, 48px);
  }
  
  .hero-fullwidth .lead {
    font-size: clamp(16px, 4vw, 20px);
  }
  
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
  
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
  }
  
  .cta-section {
    padding: 60px 32px;
  }
  
  .simple-nav {
    padding: 0 20px;
  }
  
  .simple-nav .brand {
    font-size: 20px;
  }
  
  .simple-menu {
    display: none;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .product-showcase {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: clamp(28px, 6vw, 40px);
  }
  
  .split-content h2 {
    font-size: clamp(26px, 5vw, 36px);
  }
}

@media (max-width: 640px) {
  .hero-fullwidth {
    padding: 80px 0 50px;
    min-height: 60vh;
  }
  
  .stats-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-number {
    font-size: clamp(36px, 10vw, 48px);
  }
  
  .btn-hero {
    padding: 14px 28px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .feature-card {
    padding: 32px 24px;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
  }
  
  .feature-icon svg {
    width: 35px;
    height: 35px;
  }
  
  .cta-section {
    padding: 50px 24px;
    border-radius: 16px;
  }
  
  .cta-section h2 {
    font-size: clamp(26px, 7vw, 36px);
  }
  
  .cta-section p {
    font-size: 17px;
  }
  
  .split-image {
    border-radius: 16px;
  }
  
  .simple-header {
    padding: 16px 0;
  }
  
  .simple-nav {
    padding: 0 16px;
  }
  
  .simple-nav .brand {
    font-size: 18px;
    gap: 8px;
  }
  
  .container {
    padding: 0 20px;
  }
}

/* Dark Mode */
body.theme-dark .feature-card,
body.theme-dark .product-card {
  background: linear-gradient(180deg, rgba(15,23,42,.90), rgba(10,18,36,.85));
  border-color: rgba(255,255,255,.15);
}

body.theme-dark .feature-card h3,
body.theme-dark .product-info h3,
body.theme-dark .split-content h2,
body.theme-dark .split-content li {
  color: rgba(255,255,255,.95);
}

body.theme-dark .feature-card p,
body.theme-dark .product-info p,
body.theme-dark .split-content p {
  color: rgba(255,255,255,.75);
}

body.theme-dark .section-header p {
  color: rgba(255,255,255,.75);
}

body.theme-dark .simple-header {
  background: rgba(15,23,42,.95);
  border-bottom-color: rgba(255,255,255,.10);
}

body.theme-dark .simple-nav .brand {
  color: rgba(255,255,255,.95);
}

body.theme-dark .simple-menu a {
  color: rgba(255,255,255,.90);
}

body.theme-dark .simple-menu a:hover {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.98);
}

/* Footer Button Fix */
.footer .btn {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white !important;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
}

.footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,.35);
}

body.theme-dark .footer .btn {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white !important;
}

/* Notification Animations */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* International Phone Input Customization */
.iti {
  display: block;
  width: 100%;
}

.iti__flag-container {
  border-right: 1px solid var(--border);
  padding-right: 8px;
  margin-right: 8px;
}

.iti__selected-flag {
  padding: 0 12px;
  background: transparent;
}

.iti__selected-flag:hover {
  background: rgba(11, 102, 255, 0.05);
}

.iti input[type="tel"] {
  width: 100%;
  padding: 12px 16px 12px 80px !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
}

.iti__country-list {
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-height: 240px;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.iti__country {
  padding: 8px 12px;
  color: var(--ink);
}

.iti__country:hover {
  background: rgba(11, 102, 255, 0.08);
}

.iti__country.iti__highlight {
  background: rgba(11, 102, 255, 0.12);
}

.iti__dial-code {
  color: var(--muted);
}

body.theme-dark .iti__country-list {
  background: var(--paper);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .iti__country:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .iti__country.iti__highlight {
  background: rgba(255, 255, 255, 0.12);
}

body.theme-dark .iti__flag-container {
  border-right-color: rgba(255, 255, 255, 0.1);
}
