/* 
  +Zaldo Custom Styles
  Project_2025 Landing Page
*/

:root {
  --primary-color: #1D426A;
  --primary-dark: #15314f;
  --primary-light: #2c5585;
  --secondary-color: #333333;
  --light-gray: #f8f9fa;
  --dark-gray: #6c757d;
  --white: #ffffff;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}
#card-connection {
  background: linear-gradient(to bottom, #f5f8fa 0%, #ffffff 100%);
  padding-top: 80px;
  padding-bottom: 80px;
  margin-top: 0;
}


#card-connection {
  background-color: #f8f9fb;
}

.card-form {
  background: white;
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.5s ease-in-out;
}

.card-preview {
  background: linear-gradient(135deg, #1d426a, #2b5d91);
  color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: relative;
}

.card-logo img {
  position: absolute;
  top: 1rem;
  right: 1rem;
  height: 40px;
}

.card-chip {
  width: 50px;
  height: 35px;
  background: #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card-number {
  font-size: 1.4rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.card-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.card-info span {
  text-transform: uppercase;
  opacity: 0.85;
}

/* Input styles */
.card-form .form-control,
.card-form .form-select {
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}



/* Button */
.card-form .btn {
  background-color: #1d426a;
  border: none;
  padding: 0.75rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
}

.card-form .btn:hover {
  background-color: #15314f;
  transition: 0.3s;
}

/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--secondary-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

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

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 0.5rem;
}

.divider {
  max-width: 3.25rem;
  border-width: 0.2rem;
  border-color: var(--primary-color);
}

/* Logo Styles - Corregidos para mejor visualización */
.logo-img {
  height: 100px; /* Aumentado de 40px a 60px para mejor visualización */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo-footer {
  height: 70px; /* Aumentado de 30px a 50px */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.isotipo-hero {
  height: 120px; /* Aumentado de 100px a 120px */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.isotipo-cta {
  height: 100px; /* Aumentado de 80px a 100px */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.isotipo-survey {
  height: 100px; /* Aumentado de 80px a 100px */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Solución adicional para mostrar correctamente las imágenes */
img {
  max-width: 100%;
  height: auto;
}

/* Para asegurar que las imágenes con fondo transparente se vean correctamente */
.hero img, .cta img {
  background-color: transparent !important;
}

/* HERO: Contenedor */
.hero .hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0;
}

/* HERO: Contenido a la izquierda */
.hero-content {
  text-align: center;
  padding: 1rem 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: #f1f1f1;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  margin: 0.5rem;
}

/* HERO: Imagen Mockup */
.demo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  height: auto;
}

.app-screenshot {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.8s ease;
}

.app-screenshot:hover {
  transform: scale(1.03);
}

/* RESPONSIVE: Mobile */
@media (max-width: 768px) {
  .hero-row {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-content p {
    font-size: 1rem;
  }

  .app-screenshot {
    max-width: 80%;
    transform: none;
  }

  .app-screenshot:hover {
    transform: none;
  }
}

/* Navigation */
#mainNav {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: var(--white);
  transition: background-color 0.2s ease;
}

#mainNav .navbar-brand {
  font-weight: 700;
  color: var(--secondary-color);
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 0.75rem 1rem;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:active {
  color: var(--primary-color);
}

#mainNav .navbar-nav .nav-item .cta-small {
  background-color: var(--primary-color);
  color: var(--white) !important;
  border-radius: 25px;
  padding: 0.5rem 1.25rem;
  margin-left: 0.5rem;
}

#mainNav .navbar-nav .nav-item .cta-small:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
  margin-bottom: 25px;
  padding-top: 120px; /* Aumentado para evitar el solapamiento con la navbar */
  padding-bottom: 60px; /* Asegurar suficiente espacio en la parte inferior */
  overflow: visible; /* Cambiado de hidden a visible para permitir que la imagen sea visible completamente */
}

/* Contenedor de contenido héroe mejorado */
.hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

/* Asegura que los botones siempre sean visibles */
.hero-buttons {
  margin-bottom: 30px;
}

/* Demo container para mantener la imagen dentro del hero */
.demo-container {
  position: relative;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px; /* Espacio adicional en la parte inferior */
  width: 85%; /* Ajustado para un ancho específico */
  margin-left: auto;
  margin-right: auto;
}

.app-screenshot {
  transform: perspective(800px) rotateY(-15deg);
  transition: transform 1s ease;
  width: 80%; /* Cambiado de max-width a width para forzar un tamaño específico */
  height: auto;
  max-height: 100vh; /* Limitando altura máxima al 80% de la altura visible */
  border-radius: 1.5rem; /* Aumentado el radio del borde para todas las imágenes de mockup */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.app-screenshot:hover {
  transform: perspective(800px) rotateY(0);
}

/* App Showcase Images */
.app-showcase-image {
  transition: transform 0.5s ease;
  border-radius: 1.5rem; /* Aseguramos que todas las imágenes de showcase tengan bordes redondeados */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.app-showcase-image:hover {
  transform: translateY(-10px);
}

/* Features Section */
.feature-box {
  padding: 2rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  margin-bottom: 25px;
}

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

.feature-box i {
  color: var(--primary-color);
}

.app-showcase-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white); /* Cambiado para que el color por defecto sea blanco */
  min-width: 40px; /* Asegura que el ancho mínimo sea igual al ancho */
  box-sizing: border-box; /* Asegura que el padding no afecte las dimensiones */
  padding: 0; /* Elimina cualquier padding que podría afectar la forma */
  aspect-ratio: 1/1; /* Fuerza la relación de aspecto 1:1 para navegadores modernos */
}

/* Asegurando que todos los iconos dentro de icon-circle sean blancos */
.icon-circle i {
  color: var(--white);
}

/* Benefits Cards */
.benefit-card {
  transition: var(--transition);
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  margin-bottom: 25px;
}

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

.benefit-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Espaciado para sección de beneficios */
#benefits {
  padding-top: 60px;
  padding-bottom: 60px;
  margin-bottom: 25px;
}

/* Espaciado para títulos de sección */
.section-heading {
  margin-bottom: 30px;
}

/* Testimonials */
.testimonial-card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
}

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

.testimonial-stars {
  color: #FFD700;
}

/* FAQ Section */
#faq {
  padding-top: 60px;
  padding-bottom: 60px;
  margin-bottom: 25px;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-light);
  color: var(--white); /* Cambiado de --secondary-color a --white */
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(29, 66, 106, 0.25);
}

.accordion-button {
  padding: 1.25rem;
  font-weight: 500;
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--light-gray);
}

/* Call to Action Section */
#cta {
  padding: 5rem 0;
  background-color: var(--primary-color);
}

/* Estilos para el CTA - Actualizado con los colores de +Zaldo */
.cta-highlight {
    background-color: #f8f9fa; /* Fondo claro */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
    border: 2px solid var(--primary-color); /* Borde con el color primario de +Zaldo */
}

.cta-highlight h2 {
    color: var(--primary-color); /* Color primario de +Zaldo */
    font-weight: bold;
}

.cta-highlight p {
    color: var(--dark-gray); /* Gris oscuro para mejor legibilidad */
}

.cta-highlight input {
    max-width: 300px;
    border: 1px solid var(--primary-light); /* Borde con color primario más claro */
    border-radius: 0.25rem;
}

.cta-highlight button {
    background-color: var(--primary-color); /* Color primario de +Zaldo */
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-highlight button:hover {
    background-color: var(--primary-dark); /* Versión más oscura del color primario */
}

/* Media queries para hacer responsivo el formulario en el CTA */
@media (max-width: 576px) {
    .cta-highlight form {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-highlight input {
        max-width: 100%;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .cta-highlight button {
        width: 100%;
    }
}

/* Footer */
footer {
  padding-top: 3rem;
}

.social-icons a {
  color: var(--dark-gray);
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--primary-color);
}

/* Survey Page Styles */
.survey-header {
  padding-top: 8rem;
}

.survey-card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 20px; /* Espacio entre el iframe y el contenido */

}

/* Google Forms iframe styling */
.survey-card iframe {
  border: 0;
  height: 100%;
  width: 100%;
  min-height: 800px;
  padding: 25px;
}

/* Responsive height for iframe */
@media (max-width: 768px) {
  .survey-card iframe {
    min-height: 1200px; /* Mayor altura para móviles */
  }
}

/* Secciones alternadas */
.bg-light-alt {
  background-color: #f0f4f8; /* Un tono ligeramente diferente para distinguirlo */
}

/* Secciones alternadas con separación natural */
.bg-light-subtle {
  background-color: #f5f8fa; /* Tono muy sutil para distinguirlo */
}

/* Ajustes para una separación más natural entre secciones */
#app-showcase {
  padding-bottom: 3rem;
  border-bottom: none; /* Eliminamos el borde que era muy obvio */
}

#benefits,
#app-showcase,
#gestion-showcase {
  margin-bottom: 0;
  padding-bottom: 0;
}



/* Separador sutil entre secciones */
#gestion-showcase:before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.05), rgba(0,0,0,0)); /* Degradado sutil */
}

/* Eliminamos la clase section-divider que era muy exagerada */
/* Media queries para ajustar espaciado en dispositivos más pequeños */
@media (max-width: 768px) {
  #app-showcase, #gestion-showcase {
    padding-bottom: 2rem;
    padding-top: 2rem;
  }
  
  #gestion-showcase:before {
    left: 10%;
    right: 10%;
  }
  
  .app-screenshot {
    transform: perspective(600px) rotateY(-10deg); /* Ángulo menos pronunciado en móviles */
    width: 90%;
  }
  
  .app-screenshot:hover {
    transform: perspective(600px) rotateY(0); /* Asegurar que el hover funcione en móviles también */
  }
}

/* Optimizaciones para móviles */
.mobile-hero-content {
  padding: 2rem 1rem;
}

.mobile-hero-image {
  margin: 1rem auto 2rem;
  max-width: 85%;
  padding: 0;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 3rem;
  }
  
  #mainNav .navbar-nav .nav-item .cta-small {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .feature-box {
    margin-bottom: 2rem;
  }
  
  .logo-img {
    height: 50px; /* Ajustado para pantallas medianas */
  }
  
  .isotipo-hero,
  .isotipo-cta,
  .isotipo-survey {
    height: 80px; /* Ajustado para pantallas medianas */
  }
  
  .demo-container {
    height: auto;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 92%;
  }
  
  .app-screenshot {
    width: 85%;
    max-height: none;
    margin: 0 auto;
    transform: perspective(800px) rotateY(-10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }
  
  .app-screenshot:hover {
    transform: perspective(800px) rotateY(0);
  }
  
  .hero-content {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 85px;
    text-align: center;
  }
  
  h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .isotipo-hero {
    height: 100px;
    margin-bottom: 1.5rem;
  }
  
  .hero-content {
    padding: 0 10px;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem;
  }
  
  .hero-buttons .btn {
    margin-bottom: 0.8rem;
    margin-left: 0 !important;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .demo-container {
    width: 100%;
    padding: 0;
  }
  
  .app-screenshot {
    width: 80%;
    transform: perspective(600px) rotateY(-8deg);
    border-radius: 1rem;
  }
  
  .app-screenshot:hover {
    transform: perspective(600px) rotateY(0);
  }
  
  .feature-box {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .feature-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .app-showcase-image {
    width: 85%;
    margin: 0 auto;
  }
  
  .app-showcase-content {
    text-align: center;
    padding: 0 0.5rem;
    margin-bottom: 2rem;
  }
  
  .app-showcase-content h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
  }
  
  .icon-circle {
    margin: 0 auto;
    margin-right: 10px;
  }
  
  .d-flex.mb-3 {
    text-align: left;
    margin-bottom: 1.2rem !important;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .accordion-body {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  #cta {
    padding: 3rem 0;
  }
  
  .isotipo-cta {
    height: 80px;
  }
  
  footer .social-icons {
    margin-top: 1rem;
    text-align: center;
  }
  
  footer .social-icons a {
    font-size: 1.3rem;
    margin: 0 0.8rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 80px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .isotipo-hero {
    height: 80px;
  }
  
  .hero-buttons {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .hero-buttons .btn-xl {
    display: block;
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 12px;
  }
  
  .app-screenshot {
    width: 90%;
    transform: perspective(400px) rotateY(-5deg);
  }
  
  .app-screenshot:hover {
    transform: perspective(400px) rotateY(0);
  }
  
  .feature-box {
    padding: 1.2rem 0.8rem;
  }
  
  .app-showcase-content .col-md-6 {
    padding: 0 5px;
  }
  
  .page-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  footer {
    padding-top: 2rem;
  }
  
  footer .logo-footer {
    height: 35px;
  }
}

@media (max-width: 375px) {
  h1 {
    font-size: 1.6rem;
  }
  
  .isotipo-hero {
    height: 70px;
  }
  
  .app-screenshot {
    width: 95%;
  }
  
  .btn-xl {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

/* Removiendo estilos que interfieren con favicon */
/* Eliminamos estas reglas que afectan a los favicons */
/* 
link[rel="icon"],
link[rel="shortcut icon"],
link[rel="apple-touch-icon"] {
  border-radius: 50%;
  overflow: hidden;
}

@media screen and (min-width: 0\0) {
  link[rel="icon"],
  link[rel="shortcut icon"],
  link[rel="apple-touch-icon"] {
    border-radius: 0;
  }
}
*/