/* ===== VARIABLES DE COLOR ===== */
:root {
  --color-primario: #004080;   /* Azul oscuro */
  --color-secundario: #0066cc; /* Azul medio */
  --color-acento: #3399ff;     /* Azul claro */
  --color-texto: #003366;      /* Texto principal */
  --color-fondo: #ffffff;      /* Fondo base */
  --color-suave: #f5f9ff;      /* Fondo suave para cards */
}

/* ===== ESTILOS GENERALES ===== */
body {
  font-family: Arial, sans-serif; /* Fuente principal */
  margin: 0;                      /* Elimina márgenes por defecto */
  background-color: var(--color-fondo);
  color: var(--color-texto);
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-secundario) 50%, var(--color-acento) 100%);
  color: var(--color-fondo);
  padding: 40px 20px;             /* Espaciado interno */
  display: flex;                  /* Activa flexbox */
  align-items: center;            /* Centra verticalmente */
  justify-content: center;        /* Centra horizontalmente */
  gap: 30px;                      /* Espacio entre imagen y texto */
  text-align: left;               /* Texto alineado a la izquierda */
}

header img {
  max-width: 150px;               /* Tamaño máximo de la foto */
  border-radius: 50%;             /* Foto circular */
  border: 4px solid #ffffff;      /* Borde blanco */
}

header .header-text {
  max-width: 500px;               /* Limita ancho del texto */
}

header h1 {
  margin: 0;
  font-size: 2em;                 /* Título grande */
}

header p {
  margin-top: 10px;
  font-size: 1.2em;               /* Subtítulo */
}

/* ===== LISTA DE COACHING ===== */
.coaching-list {
  list-style: none;               /* Quita viñetas */
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.coaching-list li {
  background: #f5f9ff;            /* Fondo suave */
  border-left: 5px solid #0066cc; /* Línea azul decorativa */
  margin: 15px 0;
  padding: 15px 20px;
  font-size: 1.1em;
  line-height: 1.5;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.coaching-list li span {
  font-size: 1.4em;
  margin-right: 12px;
  color: #004080;                 /* Icono azul */
}

/* ===== NAVBAR ===== */
nav {
  background-color: var(--color-primario);
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* sombra ligera */
}

nav a {
  position: relative;             /* necesario para el pseudo-elemento */
  color: var(--color-fondo);
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;                   /* justo debajo del texto */
  width: 100%;
  height: 2px;
  background-color: var(--color-acento);
  transform: scaleX(0);           /* invisible al inicio */
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav a:hover {
  color: var(--color-acento);     /* cambia color del texto */
}

nav a:hover::after {
  transform: scaleX(1);           /* aparece la barra */
  transform-origin: left;
}

/* ===== SECCIONES GENERALES ===== */
.titulo {
  font-size: 0.7em;          /* más pequeño que el nombre */
  font-weight: 500;          /* semibold, elegante */
  color: #006699;            /* un azul profesional */
  background: #eef6fa;       /* fondo sutil */
  padding: 4px 10px;
  border-radius: 20px;       /* forma de badge */
  margin-right: 12px;
  text-transform: uppercase; /* da autoridad */
  letter-spacing: 1px;       /* más aire */
}


section {
  padding: 40px;
  text-align: center;
}

h1, h2 {
  color: #003366;                 /* Títulos en azul oscuro */
}

.btn {
  display: inline-block;
  background-color: #0066cc;      /* Botón azul */
  color: #ffffff;
  padding: 12px 25px;
  margin-top: 20px;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: #004080;      /* Botón más oscuro al hover */
}

/* Botón Comprar elegante */
.comprar-btn {
  display: inline-block;
  background: linear-gradient(135deg, #28a745, #218838);
  color: var(--color-fondo);
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.comprar-btn:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.comprar-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
footer {
  background-color: #003366;
  color: #ffffff;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

footer .social-icons {
  margin-top: 10px;
}

footer .social-icons a {
  margin: 0 10px;
  font-size: 1.5em;
  color: var(--color-fondo);
  transition: color 0.3s ease, transform 0.2s ease;
}

footer .social-icons a:hover {
  color: var(--color-acento);
  transform: scale(1.2);
}

/* ===== SOBRE MÍ CARD ===== */
.sobre-mi-card {
  background: #ffffff;
  max-width: 900px;
  margin: 40px auto 40px auto; 
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
}

.sobre-mi-card h2 {
  margin-top: 0;
  color: #003366;
}

.sobre-mi-card p {
  line-height: 1.6;
  color: #333;
}

.sobre-mi-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.sobre-mi-video {
  flex: 1;
  min-width: 300px;
}

.sobre-mi-texto {
  flex: 2;
  padding: 20px 30px;
}

.sobre-mi-texto h2 {
  margin-bottom: 15px;
}

.sobre-mi-texto p {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ===== SLIDER ===== */
#slider {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 500px; /* Ajusta el alto según lo que quieras */
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 70%;        /* Que ocupe todo el ancho del contenedor */
  height: 100%;       /* Que ocupe todo el alto */
  object-fit: cover;  /* Ajusta la imagen sin deformarla */
  border-radius: 23px;
}

/* Clase activa para mostrar la imagen */
.active {
  opacity: 1;
}

/* ===== TESTIMONIOS ===== */
.testimonios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: #f5f9ff;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  padding: 20px;
  max-width: 300px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card p {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #003366;
}

.card a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* ===== PRODUCTOS ===== */
#productos {
  padding: 40px;
  text-align: center;
}

.productos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.producto-card {
  background: #f5f9ff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 280px;
  text-align: center;
}

.producto-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

.producto-card h3 {
  color: #003366;
  margin: 10px 0;
}

.producto-card p {
  font-size: 0.95em;
  line-height: 1.4;
  color: #333;
  margin-bottom: 15px;
}

.producto-card .btn {
  display: inline-block;
  background-color: #0066cc;
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.producto-card .btn:hover {
  background-color: #004080;
}

/* ===== VIDEOS ===== */
#videos {
  padding: 40px;
  text-align: center;
}

.videos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.video-card {
  background: #f5f9ff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 320px;
}

.video-card video {
  width: 100%;
  border-radius: 6px;
}

.video-card h3 {
  margin-top: 15px;
  font-size: 1.1em;
  color: #003366;
}

.preview-img {
  width: 100%;
  max-width: 300px;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s;
}

.preview-img:hover {
  transform: scale(1.05);
}

.modal {
  display: none; /* 🔑 Esto lo mantiene oculto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.video-container iframe {
  width: 70%;        /* ocupa solo el 70% del ancho */
  max-width: 640px;  /* límite máximo */
  height: 360px;     /* altura fija para mantener proporción */
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.ficha-container {
  text-align: center;
  margin: 10px 0;
}

.ficha-container .btn {
  background: #0066cc;
  color: #fff;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
}

.ficha-container .btn:hover {
  background: #004a99;
}

.close {
  position: absolute;       /* se coloca en la esquina */
  top: 10px;
  right: 15px;
  color: #fff;              /* color blanco sobre fondo oscuro */
  font-size: 28px;          /* tamaño grande */
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1100;            /* siempre encima del contenido */
}

.close:hover {
  color: #ff4444;           /* rojo al pasar el mouse */
  transform: scale(1.2);    /* efecto de zoom */
}


/* ===== FORMULARIO DE CONTACTO ===== */
#contacto {
  background: var(--color-suave);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--sombra-media);
  max-width: 400px;
  margin: 40px auto;
}

#contacto h2 {
  margin-bottom: 20px;
  color: var(--color-primario);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form input {
  padding: 12px 15px;
  border: 1px solid #dce6f5;
  border-radius: var(--radio);
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus {
  border-color: var(--color-secundario);
  box-shadow: 0 0 6px rgba(0,102,204,0.3);
  outline: none;
}

#contact-form button {
  background-color: var(--color-secundario);
  color: var(--color-fondo);
  padding: 12px;
  border: none;
  border-radius: var(--radio);
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact-form button:hover {
  background-color: var(--color-primario);
}

/* ===== LOGIN CRM ===== */
#login {
  max-width: 350px;
  margin: 80px auto;
  padding: 30px;
  background: var(--color-suave);
  border-radius: 10px;
  box-shadow: var(--sombra-media);
  text-align: center;
}

#login h2 {
  margin-bottom: 20px;
  color: var(--color-primario);
}

#login input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #dce6f5;
  border-radius: var(--radio);
  font-size: 1em;
}

#login button {
  width: 100%;
  background: var(--color-secundario);
  color: var(--color-fondo);
  padding: 12px;
  border: none;
  border-radius: var(--radio);
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#login button:hover {
  background-color: var(--color-primario);
}

/* ===== PANEL CRM ===== */
#crm-panel {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: var(--color-fondo);
  border-radius: 10px;
  box-shadow: var(--sombra-suave);
}

#crm-panel h2 {
  margin-bottom: 20px;
  color: var(--color-primario);
}

#crm-panel label {
  margin: 0 10px;
  font-weight: bold;
  color: var(--color-texto);
}

#crm-panel input[type="date"] {
  padding: 8px;
  border: 1px solid #dce6f5;
  border-radius: var(--radio);
}

#crm-panel button {
  margin: 10px;
  background: var(--color-secundario);
  color: var(--color-fondo);
  padding: 10px 20px;
  border: none;
  border-radius: var(--radio);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#crm-panel button:hover {
  background-color: var(--color-primario);
}

/* ===== TABLA DE REGISTROS ===== */
#tabla {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#tabla th, #tabla td {
  border: 1px solid #dce6f5;
  padding: 12px;
  text-align: left;
}

#tabla th {
  background: var(--color-primario);
  color: var(--color-fondo);
}

#tabla tr:nth-child(even) {
  background: var(--color-suave);
}

#tabla tr:hover {
  background: var(--color-acento);
  color: var(--color-fondo);
}

/* ===== RESPONSIVIDAD ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;   /* Foto arriba, texto abajo */
    text-align: center;
    gap: 20px;
  }

  header img {
    max-width: 120px;
  }

  header .header-text {
    max-width: 100%;
  }

  nav a {
    display: inline-block;
    margin: 8px;
    font-size: 0.9em;
  }

  section {
    padding: 20px;
  }

  .slide img {
    width: 100%;   /* Ocupa todo el ancho en móviles */
  }
  
  .sobre-mi-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5em;
  }

  header p {
    font-size: 1em;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}