/* Variables CSS */
:root {
  --primary-color: #1a5f3d;
  --secondary-color: #2d8659;
  --accent-color: #f59e0b;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Header y Navegación */
header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo a {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
}

.logo a img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.logo a:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--accent-color);
  transform: scale(1.15);
}
.social-link {
  /* clase aplicada en HTML */
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}
.social-link img {
  width: 20px;
  height: 20px;
  display: block;
}

.social-link:hover,
.social-link:focus {
  transform: translateY(-3px) scale(1.03);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Instagram official gradient button */
.social-link.instagram {
  background: linear-gradient(
    45deg,
    #feda75 0%,
    #fa7e1e 20%,
    #d62976 40%,
    #962fbf 60%,
    #4f5bd5 80%
  );
  color: white;
}

.social-link.instagram svg {
  filter: none;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(
      135deg,
      rgba(26, 95, 61, 0.95),
      rgba(45, 134, 89, 0.95)
    ),
    url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1600")
      center/cover;
  color: white;
  padding: 10rem 2rem 6rem;
  text-align: center;
  margin-top: 70px;
}

.hero .btn-primary {
  font-size: 22px;
}
.hero .btn-secondary {
  font-size: 22px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  transform: translateY(-2px);
  color: var(--primary-color);
}

/* Secciones */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Sobre mí */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: 27px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Escala la imagen a un 110% de su tamaño */
  transform: scale(1.4);
  cursor: zoom-in;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.credentials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.credential-badge {
  background: var(--light-bg);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border-top: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card .btn {
  font-size: 19px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-top-color: var(--accent-color);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--accent-color);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
}

.service-card li::before {
  content: "✓";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.service-card .btn {
  margin-top: auto;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover .btn {
  background: var(--accent-color);
  transform: scale(1.05);
}

/* Metodología */
.methodology-bg {
  background: var(--light-bg);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.method-step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.method-step h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Testimonios */
/* Carrusel de Testimonios */
.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.testimonials-container-wrapper {
  overflow: hidden;
  border-radius: 15px;
  padding: 1rem 0;
}

.testimonials {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  flex: 0 0 calc((100% - 4rem) / 3);
  max-width: calc((100% - 4rem) / 3);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.quote-icon {
  font-size: 3rem;
  color: var(--accent-color);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.testimonial-text {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.author-info h4 {
  color: var(--primary-color);
  font-size: 1rem;
}

.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Carrusel de Videos */
.video-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 60px;
}

.carousel-container {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper {
  width: 100%;
  background: white;
  border-radius: 15px;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  background: #000;
}

.video-info {
  padding: 1.5rem;
  text-align: center;
  background: white;
}

.video-info h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.video-info p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Botones del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

/* Indicadores del carrusel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s;
}

.indicator:hover {
  background: var(--secondary-color);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--primary-color);
  width: 30px;
  border-radius: 6px;
}

/* Formulario de Contacto */
.contact-section {
  background: var(--dark-bg);
  color: var(--accent-color);
  margin: 0;
  max-width: 100%;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-form {
  background: lightgrey;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.parrafiyo {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Mensajes de error individuales */
.error-message {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.error-message.show {
  display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.form-group.error label {
  color: #dc3545;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 2rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.social-links a:hover {
  background: var(--accent-color);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: left 0.3s;
    padding: 2rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Carrusel responsive */
  .video-carousel {
    padding: 0 50px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .video-wrapper video {
    max-height: 300px;
  }

  .video-info {
    padding: 1rem;
  }

  .video-info h4 {
    font-size: 1rem;
  }

  .video-info p {
    font-size: 0.85rem;
  }

  /* Testimonios responsive - mostrar 1 por vez en móvil */
  .testimonial-card {
    min-width: 100%;
  }
}
