/* Importación de fuentes */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

/* Variables CSS para consistencia */
:root {
  --primary: #95beba;
  --primary-dark: #7ba8a3;
  --primary-light: #d2e5e3;
  --secondary: #f2e8d3;
  --dark: #041f1e;
  --light: #ebf1f0;
  --gray: #6c757d;
  --gray-light: #e9ecef;

  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;

  --border-radius-sm: 8px;
  --border-radius-md: 15px;
  --border-radius-lg: 25px;
}

/* Estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Clase para accesibilidad - ocultar visualmente pero mantener para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

/* Header y navegación */
header {
  background-color: var(--primary-dark);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.logo {
  width: 120px;
  height: auto;
  margin-left: 15px;
  cursor: pointer;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

#menuBtn {
  font-size: 24px;
  cursor: pointer;
  color: white;
  transition: var(--transition);
  padding: 5px 10px;
  border-radius: var(--border-radius-sm);
}

#menuBtn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#userIcono {
  width: 35px;
  height: 35px;
  margin-right: 20px;
  cursor: pointer;
  transition: transform 0.3s;
}

#userIcono:hover {
  transform: scale(1.1);
}

#contactButton {
  background-color: white;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

#contactButton:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Menú lateral */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  background-color: var(--dark);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 100px;
  box-shadow: var(--shadow-md);
}

.sidenav a {
  padding: 15px 25px;
  text-decoration: none;
  font-size: 18px;
  color: #bbb;
  display: block;
  transition: 0.3s;
  border-left: 3px solid transparent;
}

.sidenav a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--primary);
}

/* Estilo para el enlace activo (página actual) */
.sidenav a.active {
  color: white;
  background-color: rgba(149, 190, 186, 0.15);
  border-left: 3px solid var(--primary);
  font-weight: 600;
  pointer-events: none;
  cursor: default;
}

.sidenav a.active:hover {
  background-color: rgba(149, 190, 186, 0.15);
}

.sidenav .closebtn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  padding: 0;
  color: #bbb;
}

.sidenav .closebtn:hover {
  color: white;
  background-color: transparent;
  border-left: 3px solid transparent;
}

/* Sección Hero */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 120px 5% 60px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: white;
}

.hero-text h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-video {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.hero-video img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

/* Botones CTA */
.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.cta-button {
  background-color: white;
  color: var(--dark);
  padding: 25px 40px;
  border-radius: var(--border-radius-lg);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background-color: var(--light);
}

.cta-button h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.cta-button p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Sección de Ventajas */
.benefits-section {
  padding: 80px 5%;
  background-color: var(--light);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--dark);
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
}

.benefits-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background-color: white;
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  transition: var(--transition);
}

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

.benefit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray-light);
}

.benefit-header h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
}

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

.benefit-card ul {
  padding-left: 10px;
}

.benefit-card li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}

.check {
  color: green;
  margin-right: 10px;
  font-weight: bold;
}

/* Sección de Características */
.features-section {
  padding: 80px 5%;
  background-color: var(--secondary);
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  background-color: white;
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

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

.feature p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 5% 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

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

.footer-links,
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-content h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-content h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links ul {
  padding: 0;
}

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

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

.footer-contact p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Formularios */
.form_datos {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: var(--border-radius-md);
  padding: 30px;
  width: 90%;
  max-width: 500px;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
}

.formh1 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 25px;
  text-align: center;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.obligatorio {
  color: #e74c3c;
}

input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(149, 190, 186, 0.2);
  outline: none;
}

.submit-button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.submit-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: var(--gray);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.close-btn:hover {
  background-color: var(--gray-light);
  color: var(--dark);
}

/* Mensajes de respuesta */
#response-message-login,
#response-message-register {
  margin-top: 20px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.hidden {
  display: none;
}
    

/* Media queries */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .benefit-card,
  .feature {
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 12px 4%;
  }

  .logo {
    width: 80px !important; /* Logo más pequeño en tablets */
  }
  
  #menuBtn {
    font-size: 22px;
  }

  #contactButton {
    padding: 8px 15px;
    font-size: 14px;
  }

  .hero-section {
    padding: 100px 4% 50px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.1rem;
  }

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

  .cta-button {
    padding: 20px 30px;
    min-width: 200px;
  }

  .cta-button h2 {
    font-size: 1.3rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-content h4:after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {
  .logo {
    width: 60px !important; /* Logo aún más pequeño en móviles */
    margin-left: 8px !important;
  }
  
  /* Ocultar la palabra "Menú" y dejar solo el ícono ☰ */
  #menuBtn {
    font-size: 28px;
    padding: 5px;
    text-indent: -9999px;
    line-height: 0;
  }
  
  #menuBtn::after {
    content: "☰";
    text-indent: 0;
    display: block;
    line-height: initial;
  }
  
  #userIcono {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }
  
  #contactButton {
    padding: 6px 12px;
    font-size: 13px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-video {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 280px;
  }

  .benefit-card,
  .feature {
    min-width: 100%;
  }

  .form_datos {
    width: 95%;
    padding: 20px;
  }

  .formh1 {
    font-size: 1.5rem;
  }
}

/* Estilos para el header mejorado */
.main-header {
  background-color: var(--primary);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
}

.logo {
  width: 120px;
  height: auto;
  margin-left: 15px;
  cursor: pointer;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.active-btn {
  background-color: var(--dark) !important;
  color: white !important;
}

/* Estilos para los banners de página */
.services-banner, .contact-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 120px 5% 60px;
  text-align: center;
  margin-bottom: 50px;
}

.services-banner h1, .contact-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.services-banner p, .contact-banner p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Estilos para la sección de servicios */
.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.service-item {
  display: flex;
  align-items: center;
  margin-bottom: 100px;
  gap: 50px;
}

.service-item.reverse {
  flex-direction: row-reverse;
}

.service-content {
  flex: 1;
}

.service-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.service-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray);
}

.service-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.service-image img {
  max-width: 100%;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s;
}

.service-image img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* Sección de Partners y Servicios RNTIFY */
.rntify-partners-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--border-radius-md);
  margin: 50px 0;
}

.partners-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.partners-header h2 {
  font-size: 2.5rem;
  color: #264653;
  margin-bottom: 15px;
  font-weight: 700;
}

.partners-header p {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
}

.partners-header strong {
  color: #E9C46A;
  font-weight: 700;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.partner-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2A9D8F 0%, #E9C46A 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.partner-card:hover::before {
  opacity: 1;
}

.partner-card.free-service {
  border: 2px solid #2A9D8F;
}

.partner-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.badge-free {
  background: linear-gradient(135deg, #2A9D8F 0%, #1A6B60 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 3px 10px rgba(42, 157, 143, 0.3);
}

.badge-partner {
  background: linear-gradient(135deg, #E9C46A 0%, #F4A261 100%);
  color: #264653;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 3px 10px rgba(233, 196, 106, 0.3);
}

.partner-icon {
  text-align: center;
  margin: 20px 0;
}

.partner-icon svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.partner-logo {
  text-align: center;
  margin: 20px 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.05);
}

.partner-card h3 {
  font-size: 1.4rem;
  color: #264653;
  margin: 15px 0 10px;
  font-weight: 700;
  text-align: center;
}

.partner-name {
  text-align: center;
  color: #2A9D8F;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.rntify-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
  border-radius: 12px;
  margin: 15px 0;
  border: 2px dashed #E9C46A;
}

.star-icon {
  font-size: 1.8rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.star-value {
  font-size: 1rem;
  font-weight: 700;
  color: #264653;
  letter-spacing: 0.5px;
}

.partner-card p {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 15px 0;
  text-align: center;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.service-features li {
  padding: 10px 0;
  color: #495057;
  font-size: 0.9rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #2A9D8F;
  border-radius: 50%;
  margin-right: 12px;
}

.partner-cta {
  width: 100%;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  background: linear-gradient(135deg, #2A9D8F 0%, #1A6B60 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

.partner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
}

.partner-cta.free-cta {
  background: linear-gradient(135deg, #2A9D8F 0%, #1A6B60 100%);
}

.partner-cta.free-cta:hover {
  background: linear-gradient(135deg, #1A6B60 0%, #0D4A42 100%);
}

.partners-footer {
  text-align: center;
  margin-top: 50px;
  padding: 30px 20px;
  background: white;
  border-radius: var(--border-radius-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
}

.info-text {
  color: #495057;
  font-size: 1rem;
  line-height: 1.8;
}

.info-text strong {
  color: #264653;
  font-weight: 700;
}

/* Responsive para tarjetas de partners */
@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .partners-header h2 {
    font-size: 2rem;
  }

  .partners-header p {
    font-size: 1rem;
  }

  .partner-card {
    padding: 25px;
  }

  .partner-card h3 {
    font-size: 1.2rem;
  }

  .rntify-stars {
    flex-direction: column;
    gap: 8px;
  }
}

.startup-section {
  background-color: var(--gray-light);
  padding: 40px;
  border-radius: var(--border-radius-md);
  margin-top: 50px;
}

/* Animaciones para las imágenes */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s;
}

[data-animation="fade"].in-view {
  animation: fadeIn 1s ease forwards;
}

[data-animation="show"].in-view {
  animation: scaleIn 0.8s ease forwards;
}

[data-animation="up"].in-view {
  animation: slideUp 0.8s ease forwards;
}

[data-animation="left"].in-view {
  animation: slideLeft 0.8s ease forwards;
}

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

@keyframes scaleIn {
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes slideLeft {
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

/* Estilos para la página de contacto */
.contact-section {
  padding: 0 20px 80px;
}

.contact-wrapper {
  display: flex;
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-info {
  flex: 1;
  background-color: var(--primary-dark);
  color: white;
  padding: 50px 40px;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact-details {
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-form-container {
  flex: 2;
  padding: 50px 40px;
}

.contact-form-container h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(149, 190, 186, 0.2);
  outline: none;
}

.form-group textarea {
  height: 150px;
  resize: none;
}

/* Estilos para el campo de contraseña con botón de mostrar/ocultar */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  flex: 1;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #6c757d;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.toggle-password:hover {
  color: #2A9D8F;
}

.toggle-password i {
  font-size: 1.1rem;
  color: inherit;
}

.password-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: #666;
}

.password-match-message {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  font-weight: 500;
}

.password-match-message.valid {
  color: #28a745;
}

.password-match-message.invalid {
  color: #dc3545;
}

input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

input:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

.submit-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 14px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  align-self: flex-start;
}

.submit-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.form-disclaimer {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 20px;
}

/* Estilos para el footer mejorado */
.main-footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 5% 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-info {
  flex: 2;
  min-width: 250px;
}

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

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-links, .footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-container h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-container h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links ul {
  padding: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

.footer-contact p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Media queries */
@media (max-width: 992px) {
  .services-banner h1, .contact-banner h1 {
    font-size: 2rem;
  }
  
  .service-content h2 {
    font-size: 1.7rem;
  }
  
  .contact-wrapper {
    flex-direction: column;
  }
  
  .contact-info {
    padding: 40px 30px;
  }
  
  .contact-form-container {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .service-item, .service-item.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    margin-bottom: 70px;
  }
  
  .service-content h2 {
    font-size: 1.5rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .submit-button {
    width: 100%;
    align-self: center;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-container h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-logo {
    text-align: center;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .services-banner, .contact-banner {
    padding: 100px 5% 40px;
  }
  
  .services-banner h1, .contact-banner  .contact-banner {
    padding: 100px 5% 40px;
  }
  
  .services-banner h1, .contact-banner h1 {
    font-size: 1.7rem;
  }
  
  .service-content h2 {
    font-size: 1.3rem;
  }
  
  .contact-info h2, 
  .contact-form-container h2 {
    font-size: 1.5rem;
  }
  
  .contact-info, 
  .contact-form-container {
    padding: 30px 20px;
  }
  
  .startup-section {
    padding: 30px 20px;
  }
}

/* ================================================
   ESTILOS PARA MODAL DE DURACIÓN DE CONTRATO
   ================================================ */

.modal-large {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.legal-info-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #1976d2;
  padding: 20px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.legal-info-box i {
  font-size: 24px;
  color: #1976d2;
  flex-shrink: 0;
  margin-top: 3px;
}

.legal-info-box p {
  margin: 0;
  color: #0d47a1;
  line-height: 1.6;
}

.legal-info-box p:first-of-type {
  font-weight: 600;
  margin-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.radio-label:hover {
  border-color: var(--primary);
  background-color: #f5f5f5;
}

.radio-label input[type="radio"] {
  margin-right: 12px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.radio-label input[type="radio"]:checked ~ .radio-content {
  color: var(--primary-dark);
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.radio-content {
  flex: 1;
}

.radio-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05em;
}

.radio-content small {
  color: var(--gray);
  font-size: 0.9em;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-label:hover {
  border-color: var(--primary);
  background-color: #f5f5f5;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 12px;
  margin-top: 3px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.checkbox-label:has(input[type="checkbox"]:checked) {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.checkbox-content {
  flex: 1;
}

.checkbox-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05em;
}

.checkbox-content small {
  color: var(--gray);
  font-size: 0.9em;
}

.hidden {
  display: none !important;
}

.duracion-info-section {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  border-radius: var(--border-radius-md);
  border: 2px solid var(--primary-light);
}

.duracion-info-section h3 {
  color: var(--primary-dark);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-container {
  position: relative;
  padding-left: 40px;
  margin-bottom: 30px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 30px;
  width: 3px;
  background: linear-gradient(180deg, #4caf50 0%, #2196f3 50%, #ff9800 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-icon {
  position: absolute;
  left: -36px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.timeline-icon.periodo-inicial {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.timeline-icon.prorrogas-obligatorias {
  background: linear-gradient(135deg, #2196f3, #42a5f5);
}

.timeline-icon.prorrogas-tacitas {
  background: linear-gradient(135deg, #ff9800, #ffa726);
}

.timeline-content {
  padding: 20px;
  background: white;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid;
  margin-left: 10px;
}

.timeline-item:nth-child(1) .timeline-content {
  border-left-color: #4caf50;
}

.timeline-item:nth-child(2) .timeline-content {
  border-left-color: #2196f3;
}

.timeline-item:nth-child(3) .timeline-content {
  border-left-color: #ff9800;
}

.timeline-content h4 {
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 1.1em;
}

.timeline-dates {
  display: block;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 5px;
  font-size: 0.95em;
}

.timeline-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-details li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  font-size: 0.95em;
}

.timeline-details li:last-child {
  border-bottom: none;
}

.timeline-details li strong {
  color: var(--dark);
}

.timeline-details ul {
  list-style: circle;
  margin-left: 25px;
  margin-top: 8px;
}

.timeline-details ul li {
  padding: 4px 0;
  border-bottom: none;
}

.legal-summary {
  padding: 20px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: var(--border-radius-sm);
  border-left: 4px solid #f57c00;
}

.legal-summary h4 {
  color: #e65100;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-summary p {
  color: #bf360c;
  line-height: 1.6;
  margin: 0;
}

/* Responsive para modal de duración */
@media (max-width: 768px) {
  .modal-large {
    max-width: 95%;
    margin: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .timeline-container {
    padding-left: 30px;
  }
  
  .timeline-icon {
    left: -30px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

/* =============================================
   MODAL DE MENSAJES - CONTACTO
   ============================================= */
.message-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.message-modal.show {
  display: flex;
}

.message-modal-content {
  background-color: white;
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideDown 0.4s ease;
  text-align: center;
}

.message-modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.message-modal-content.success .message-modal-icon {
  color: #28a745;
}

.message-modal-content.error .message-modal-icon {
  color: #dc3545;
}

.message-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.message-modal-text {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.message-modal-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.message-modal-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

@media (max-width: 768px) {
  .message-modal-content {
    padding: 2rem;
    max-width: 90%;
  }
  
  .message-modal-icon {
    font-size: 3rem;
  }
  
  .message-modal-title {
    font-size: 1.3rem;
  }
}

/* Añadir script para animaciones al hacer scroll */