/* =============================================
   PÁGINAS INTERNAS (pages.css)
   ============================================= */

/* =============================================
   7. PÁGINA NOSOTROS
   ============================================= */
.agl-text-justify {
  text-align: justify;
  hyphens: auto;
}

.agl-nosotros-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.agl-nosotros-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.agl-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 17, 13, 0.4), rgba(6, 17, 13, 0.8));
  z-index: 2;
}

.agl-nosotros-hero-content {
  position: relative;
  z-index: 3;
  padding: 20px;
  max-width: 900px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.agl-nosotros-hero-content .agl-title {
  font-size: 56px;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.agl-lead-white {
  font-size: 26px;
  line-height: 1.4;
  font-weight: 500;
  max-width: 900px;
  margin: 0 auto;
}

.agl-section {
  padding: 80px 0;
}

.agl-bg-light {
  background: linear-gradient(180deg, #f4fcfb 0%, #eef7f5 100%);
}

.agl-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.agl-section-title {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.agl-text-block {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.agl-text-block.agl-text-justify {
  text-align: justify;
}

.agl-lead {
  font-size: 21px;
  line-height: 1.7;
  color: #1a2e26;
  margin-bottom: 30px;
  font-weight: 500;
}

.agl-main p {
  line-height: 1.8;
  color: #3c4a44;
  font-size: 17px;
  margin-bottom: 1.5em;
}

/* Grid Layouts */
.agl-container--grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.agl-card-img img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.agl-card-img:hover img {
  transform: rotate(0deg) scale(1.02);
}

.agl-subtitle {
  font-size: 32px;
  color: var(--green);
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.agl-subtitle::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: var(--green2);
  margin-top: 8px;
  border-radius: 4px;
}

/* Misión - Visión Grid */
.agl-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.agl-mv-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agl-mv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(10, 171, 53, 0.12);
}

.agl-mv-img {
  height: 240px;
  overflow: hidden;
}

.agl-mv-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.agl-mv-card:hover .agl-mv-img img {
  transform: scale(1.08);
}

.agl-mv-content {
  padding: 36px 32px;
  flex: 1;
}

.agl-mv-content h3 {
  color: var(--green2);
  margin-top: 0;
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 800;
}

.agl-lema {
  text-align: center;
  margin-top: 50px;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border-left: 5px solid var(--green);
}

/* Values Grid PRO */
.agl-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.agl-value-item {
  background: #fff;
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agl-value-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  border-radius: 4px 4px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agl-value-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(10, 171, 53, 0.15);
}

.agl-value-item:hover::before {
  opacity: 1;
}

.agl-value-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0fdf7;
  display: grid;
  place-items: center;
  font-size: 36px;
  margin-bottom: 24px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.agl-value-item:hover .agl-value-icon-box {
  transform: scale(1.1) rotate(6deg);
  background: var(--green);
}

.agl-value-title {
  font-weight: 900;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.agl-value-desc {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Footer Hero Overrides */
.agl-nosotros-footer {
  height: 60vh;
}

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

  .agl-nosotros-hero-content .agl-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {

  .agl-container--grid,
  .agl-mv-grid {
    grid-template-columns: 1fr;
  }

  .agl-nosotros-hero-content .agl-title {
    font-size: 32px;
  }

  .agl-lead-white {
    font-size: 20px;
    padding: 0 10px;
  }

  .agl-values-grid {
    gap: 16px;
  }
}


/* =============================================
   8. PÁGINA SERVICIO TÉCNICO
   ============================================= */
.agl-st-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.agl-st-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.6;
}

.agl-st-hero-content {
  position: relative;
  z-index: 3;
  padding: 24px;
  max-width: 900px;
}

.agl-main .agl-lead-white,
.agl-st-hero-content p {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.agl-lead-white,
.agl-st-hero-content p {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.agl-st-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Botones */
.agl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.agl-btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 15px rgba(10, 171, 53, 0.4);
}

.agl-btn--primary:hover {
  background: var(--green2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 171, 53, 0.6);
}

.agl-btn--outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(5px);
}

.agl-btn--outline:hover {
  background: #fff;
  color: #000;
}

.agl-btn--glow {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
  animation: pulse 2s infinite;
}

/* Sección IA */
.agl-bg-dark {
  background: #0a1628;
  color: #fff;
}

.agl-bg-dark p {
  color: #e2e8f0;
}

.agl-text-white {
  color: #fff !important;
}

.agl-main .agl-lead-light {
  font-size: 18px;
  color: #ffffff;
  /* Blanco puro solicitado */
  max-width: 700px;
  margin: 0 auto 40px;
}

.agl-ia-badge {
  display: inline-block;
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.agl-ia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.agl-ia-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.agl-ia-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(37, 211, 102, 0.3);
}

.agl-ia-icon {
  font-size: 42px;
  display: block;
  margin-bottom: 16px;
}

.agl-ia-card h3 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 20px;
}

.agl-ia-card p {
  color: #a0aec0;
  font-size: 15px;
  margin: 0;
}

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

.agl-know-card {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s;
}

.agl-know-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.agl-know-card--critical {
  border-top: 4px solid #ff4757;
}

.agl-know-header {
  background: #f8fafc;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.agl-know-icon {
  font-size: 24px;
}

.agl-know-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.agl-know-list {
  padding: 20px 24px;
  margin: 0;
  list-style: none;
}

.agl-know-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #4a5568;
  line-height: 1.5;
}

.agl-know-list li::before {
  content: "•";
  color: var(--green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Diferenciador Lluvia */
.agl-section--rain {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.agl-section--rain p,
.agl-section--rain li {
  color: #ffffff !important;
}

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

.agl-tag-rain {
  display: inline-block;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.agl-title-rain {
  font-size: 36px;
  margin: 0 0 20px;
  line-height: 1.2;
}

.agl-rain-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.agl-rain-list li {
  margin-bottom: 16px;
  font-size: 16px;
  color: #cbd5e1;
}

.agl-rain-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.agl-rain-icon {
  font-size: 80px;
  display: block;
  margin-bottom: 10px;
}

/* Credibilidad */
.agl-credibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.agl-cred-box {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  border-left: 4px solid var(--green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.agl-cred-box h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--text);
}

.agl-cred-list {
  padding: 0;
  list-style: none;
  margin: 0;
  color: #4a5568;
}

.agl-cred-list li {
  margin-bottom: 8px;
  font-size: 14px;
}

.agl-sub-loc {
  font-size: 13px;
  color: #718096;
  margin-top: 8px;
  line-height: 1.4;
}

/* FAQ Styles */
.agl-container--narrow {
  max-width: 800px;
}

.agl-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agl-faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.agl-faq-question {
  padding: 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agl-faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--green);
}

details[open] .agl-faq-question::after {
  content: "-";
}

.agl-faq-answer {
  padding: 0 20px 20px;
  color: #4a5568;
  line-height: 1.6;
  border-top: 1px solid transparent;
}

details[open] .agl-faq-answer {
  border-top-color: #f1f5f9;
  padding-top: 20px;
}

@media (max-width: 768px) {
  .agl-container--rain {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .agl-st-hero {
    height: 80vh;
  }

  .agl-st-hero-content .agl-title {
    font-size: 32px;
  }

  .agl-st-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 32px auto 0;
  }

  .agl-btn {
    width: 100%;
  }
}

/* =============================================
   9. PÁGINA CONTACTO
   ============================================= */
.contacto-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a1628;
  color: #fff;
  text-align: center;
  margin-bottom: 60px;
}

.contacto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 17, 13, 0.6), rgba(6, 17, 13, 0.9));
  z-index: 1;
}

.contacto-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contacto-title {
  font-size: 48px;
  font-weight: 900;
  margin: 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.contacto-subtitle {
  font-size: 20px;
  color: #e2e8f0;
  margin: 0;
}

.contacto-video {
  margin-top: 30px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 560px;
}

.contacto-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

/* Formulario */
.contacto-form-section {
  padding: 0 0 80px;
}

.contacto-form-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.contacto-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.contacto-form-header h2 {
  font-size: 36px;
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 800;
}

.contacto-form-header p {
  font-size: 18px;
  color: #666;
}

.contacto-form {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 171, 53, 0.1);
}

.form-checkbox {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  appearance: auto;
  accent-color: var(--green);
}

.form-checkbox a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.contacto-btn {
  grid-column: 1 / -1;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.contacto-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-icon {
  font-size: 24px;
}

.contacto-form-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: #888;
  margin: 10px 0 0;
}

/* Testimonios */
.contacto-testimonios {
  padding: 80px 0;
  background: #f8fafc;
  margin-top: 40px;
}

.testimonios-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.testimonios-title {
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 50px;
  color: var(--text);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.testimonio-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.testimonio-stars {
  font-size: 18px;
  margin-bottom: 16px;
}

.testimonio-text {
  font-size: 16px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 20px;
  font-style: italic;
  flex: 1;
}

.testimonio-author {
  font-weight: 700;
  color: var(--text);
  text-align: right;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 768px) {
  .contacto-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .contacto-title {
    font-size: 32px;
  }

  .contacto-hero {
    height: auto;
    padding: 100px 0 60px;
    min-height: auto;
  }

  .contacto-video {
    width: 100%;
  }

  /* Fix para que el iframe sea responsive */
  .contacto-video iframe {
    height: auto;
    aspect-ratio: 16/9;
  }
}