/* ============================================
   CODYMEX — MODERN PAGES CSS
   Estilo moderno para páginas internas
   Basado en modern-index.css
   ============================================ */

/* Importar el CSS base moderno */

/* ============================================
   VARIABLES ADICIONALES PARA PÁGINAS INTERNAS
   ============================================ */
:root {
  /* Colores específicos de páginas */
  --section-padding: 100px 5%;
  --section-padding-mobile: 60px 5%;
  
  /* Bordes y separadores */
  --border-subtle: rgba(255,255,255,0.05);
  --card-hover-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* ============================================
   PAGE HEADER / HERO INTERNO
   ============================================ */
.page-header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 5% 60px;
  margin-top: 0;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, rgba(7,7,9,1) 0%, rgba(20,20,25,1) 100%);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(228,64,95,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,240,255,0.05) 0%, transparent 50%);
  z-index: 0;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(7,7,9,0.8) 0%, rgba(7,7,9,0.95) 100%);
  z-index: 1;
}

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

.page-header-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ffffff 0%, #a8b2d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 30px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.back-link:hover {
  color: var(--accent-red);
  transform: translateX(-5px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-modern {
  padding: var(--section-padding);
  max-width: 1400px;
  margin: 0 auto;
}

.section-dark {
  background: linear-gradient(180deg, rgba(7,7,9,1) 0%, rgba(12,12,16,1) 100%);
}

.section-darker {
  background: #000;
}

.section-light {
  background: linear-gradient(180deg, rgba(15,15,20,1) 0%, rgba(7,7,9,1) 100%);
}

.section-header-modern {
  text-align: center;
  margin-bottom: 60px;
}

.section-label-modern {
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
  margin-bottom: 16px;
}

.section-title-modern {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-desc-modern {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   CONTENT CARDS
   ============================================ */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.content-card:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-5px);
}

.content-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.content-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   ACCORDION MODERNO
   ============================================ */
.accordion-modern {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item-modern:hover {
  border-color: rgba(255,255,255,0.12);
}

.accordion-item-modern.active {
  border-color: rgba(228,64,95,0.3);
  background: rgba(228,64,95,0.03);
}

.accordion-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-header-modern span:first-child {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
}

.accordion-icon-modern {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--accent-red);
  font-size: 1.2rem;
}

.accordion-item-modern.active .accordion-icon-modern {
  transform: rotate(45deg);
  background: var(--accent-red);
  color: #fff;
}

.accordion-body-modern {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item-modern.active .accordion-body-modern {
  max-height: 500px;
}

.accordion-body-inner-modern {
  padding: 0 30px 24px;
  color: var(--text-muted);
  line-height: 1.8;
}

.accordion-body-inner-modern ul {
  list-style: none;
  padding: 0;
}

.accordion-body-inner-modern li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

.accordion-body-inner-modern li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: 700;
}

/* Block Header for accordion groups */
.block-header {
  padding: 20px 30px;
  border-radius: 16px 16px 0 0;
  margin-bottom: 2px;
}

.block-header-red {
  background: var(--accent-red);
  color: #fff;
}

.block-header-dark {
  background: #1a1a1f;
  color: #fff;
}

.block-header-darker {
  background: #111114;
  color: #fff;
}

.block-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 4px;
  font-weight: 600;
}

.block-title {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

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

.grid-4-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4-modern { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2-modern,
  .grid-3-modern,
  .grid-4-modern { grid-template-columns: 1fr; }
  
  .section-modern { padding: var(--section-padding-mobile); }
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.contact-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card-modern:hover {
  border-color: rgba(228,64,95,0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.contact-icon-modern {
  width: 64px;
  height: 64px;
  background: rgba(228,64,95,0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-red);
}

.contact-icon-modern svg {
  width: 28px;
  height: 28px;
}

.contact-card-modern strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.contact-card-modern p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card-modern a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card-modern a:hover {
  color: var(--accent-red);
}

/* ============================================
   FORMS MODERNOS
   ============================================ */
.form-modern {
  max-width: 600px;
  margin: 0 auto;
}

.form-group-modern {
  margin-bottom: 24px;
}

.form-group-modern label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group-modern input,
.form-group-modern textarea,
.form-group-modern select {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus,
.form-group-modern select:focus {
  outline: none;
  border-color: var(--accent-red);
  background: rgba(255,255,255,0.05);
}

.form-group-modern input::placeholder,
.form-group-modern textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group-modern textarea {
  min-height: 150px;
  resize: vertical;
}

.form-radio-group-modern {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.form-radio-option-modern {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-radio-option-modern input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-red);
}

.form-note-modern {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.form-note-modern a {
  color: var(--accent-red);
  text-decoration: none;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   BUTTONS ADICIONALES
   ============================================ */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-red-modern {
  background: linear-gradient(135deg, var(--accent-red), #ff758c);
  color: #fff;
  box-shadow: 0 10px 25px rgba(228,64,95,0.3);
}

.btn-red-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(228,64,95,0.5);
}

.btn-outline-modern {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-outline-modern:hover {
  border-color: var(--accent-red);
  background: rgba(228,64,95,0.1);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.product-card-modern:hover {
  border-color: rgba(228,64,95,0.3);
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}

.product-card-img {
  height: 200px;
  background: linear-gradient(135deg, rgba(228,64,95,0.1) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.product-card-img img {
  max-height: 160px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card-modern:hover .product-card-img img {
  transform: scale(1.1);
}

.product-card-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--accent-red);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.product-card-link:hover {
  gap: 12px;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.service-card-modern:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}

.service-icon-modern {
  width: 80px;
  height: 80px;
  background: rgba(228,64,95,0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent-red);
}

.service-icon-modern svg {
  width: 40px;
  height: 40px;
}

.service-card-modern h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card-modern p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ============================================
   IMAGE STYLES
   ============================================ */
.img-rounded {
  border-radius: 24px;
  overflow: hidden;
}

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

/* ============================================
   TIMELINE / PROCESS
   ============================================ */
.timeline-modern {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-modern::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-red), var(--accent-blue));
  opacity: 0.3;
}

.timeline-item-modern {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item-modern:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content-modern {
  width: 45%;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  position: relative;
}

.timeline-content-modern::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--accent-red);
  border-radius: 50%;
}

.timeline-item-modern:nth-child(odd) .timeline-content-modern::before {
  right: -38px;
}

.timeline-item-modern:nth-child(even) .timeline-content-modern::before {
  left: -38px;
}

.timeline-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-red);
  opacity: 0.3;
  margin-bottom: 8px;
}

.timeline-content-modern h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content-modern p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .timeline-modern::before {
    left: 20px;
  }
  .timeline-item-modern,
  .timeline-item-modern:nth-child(odd) {
    flex-direction: column;
    padding-left: 60px;
  }
  .timeline-content-modern {
    width: 100%;
  }
  .timeline-content-modern::before {
    left: -38px !important;
    right: auto !important;
  }
}

/* ============================================
   BRANDS / LOGOS
   ============================================ */
.brands-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.brands-grid img {
  height: 40px;
  opacity: 0.5;
  filter: grayscale(100%) brightness(200%);
  transition: all 0.4s ease;
}

.brands-grid img:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(100%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}
