/* css/style.css
   Estilos globales para todo el proyecto "estética carpeta"
   Reemplaza las variables de color con los hex exactos de tu logo.
*/

/* ============================
   Variables globales (colores)
   ============================ */
:root{
  /* REEMPLAZA estos valores por los hex exactos del logo */
  /* Si tu logo no contiene azul, sustituye --blue-dark y --blue-light
     por los tonos que quieras usar basados en el logo. */
  --blue-dark: #0b3d91;    /* ejemplo: color azul oscuro del menú lateral */
  --blue-light: #1e5fb8;   /* ejemplo: tono más claro para los boxes del menú */
  --red-accent: #d32f2f;   /* ejemplo: rojo del logo (solo acento) */

  /* Neutros y tipografía */
  --bg: #f6f5f3;
  --surface: #ffffff;
  --muted: #6b7280;
  --text: #0f1724;

  --sidebar-width: 260px;
  --radius: 10px;
  --transition: 200ms ease;
  --max-content-width: 1100px;
  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ============================
   Reset y base
   ============================ */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font-family);
  background:linear-gradient(180deg, var(--bg), #efeeec);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ============================
   Layout principal
   ============================ */
.app{
  display:flex;
  min-height:100vh;
}

/* ----------------------------
   Sidebar lateral fijo
   ---------------------------- */
.sidebar{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:var(--sidebar-width);
  background:#580a0a;
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:28px 18px;
  gap:18px;
  box-shadow: 4px 0 18px rgba(11,61,145,0.12);
  z-index:1000;
}

/* Logo centrado arriba */
.sidebar__logo{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:6px 0 12px;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.sidebar__logo img{
  max-width:140px;
  height:auto;
  display:block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

/* Navegación vertical */
.sidebar__nav{
  width:100%;
  margin-top:12px;
  flex:1 1 auto;
  display:flex;
  align-items:flex-start;
}
.sidebar__nav ul{
  list-style:none;
  padding:0;
  margin:0;
  width:100%;
}
.sidebar__nav li{
  width:100%;
  margin-bottom:10px;
}

/* Cada opción como box ligeramente más claro */
.sidebar__nav a{
  display:block;
  width:100%;
  text-decoration:none;
  color:#fff;
  background:#cc3434;
  padding:12px 14px;
  border-radius:8px;
  font-weight:600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06) inset;
}

/* Estado hover y focus */
.sidebar__nav a:hover,
.sidebar__nav a:focus{
  transform:translateY(-3px);
  box-shadow: 0 8px 18px rgba(11,61,145,0.18);
  outline:none;
}

/* Enlace activo (resaltado) */
.sidebar__nav a.active{
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-left:4px solid var(--red-accent); /* acento rojo sutil */
  padding-left:10px;
}

/* Footer del sidebar */
.sidebar__footer{
  width:100%;
  text-align:center;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,0.04);
  font-size:13px;
  color:rgba(255,255,255,0.85);
}

/* ============================
   Contenido principal (a la derecha del sidebar)
   ============================ */
.main-content{
  margin-left:var(--sidebar-width);
  padding:36px;
  width:calc(100% - var(--sidebar-width));
  min-height:100vh;
}

/* Cabecera de página */
.page-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.page-header h1{
  margin:0;
  font-size:28px;
  color:var(--text);
}

/* Grid de contenido tipo "boxes" (estética carpeta) */
.content-grid{
  max-width:var(--max-content-width);
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
  margin: 40px auto;
  padding: 0 20px;
}
.content-grid h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #cc3434;
}

.ventajas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.ventaja-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.ventaja-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #cc3434;
}

.ventaja-card p {
  color: #000000;
  font-size: 1rem;
  line-height: 1.5;
}



/* Tarjetas / boxes */
.card{
  background:var(--surface);
  border-radius:var(--radius);
  padding:18px;
  box-shadow: 0 6px 18px rgba(15,23,36,0.06);
  border-left:6px solid rgba(0,0,0,0.02);
}

.card h2 {
  margin-top:0;
  margin-bottom:8px;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.card-toggle-icon {
  font-size: 0.9rem;
  color: #cc3434;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

/* Rotar icono cuando está abierto */
.card.card-open .card-toggle-icon {
  transform: rotate(180deg);
}

.card p{
  margin:0;
  color: #000;
  text-align: justify;
  line-height: 1.6;
  font-size: 1.1rem;}

/* ============================
   Pequeños acentos rojos (usar con moderación)
   ============================ */
.accent{
  color:var(--red-accent);
  font-weight:700;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px){
  :root{ --sidebar-width: 220px; }
  .sidebar__logo img{ max-width:120px; }
  .main-content{ padding:20px; }
}

@media (max-width: 720px){
  /* En pantallas pequeñas convertimos el sidebar en un header superior colapsable */
  .sidebar{
    position:relative;
    width:100%;
    height:auto;
    flex-direction:row;
    padding:12px;
    gap:12px;
  }
  .sidebar__nav{
    order:2;
    flex-direction:row;
    overflow:auto;
    width:auto;
  }
  .sidebar__nav ul{ display:flex; gap:8px; }
  .sidebar__nav li{ margin:0; }
  .sidebar__nav a{ white-space:nowrap; padding:8px 10px; border-radius:6px; }
  .main-content{ margin-left:0; width:100%; padding:16px; }
}

/* ============================
   Accesibilidad: foco visible
   ============================ */
a:focus{
  outline:3px solid rgba(255,255,255,0.12);
  outline-offset:2px;
}

.estudio-detalle {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 25px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  animation: fadeIn 0.3s ease;
}

.estudio-detalle.open {
  display: block;
}

.estudio-detalle img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.estudio-detalle h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #cc3434;
  font-size: 1.4rem;
}

.estudio-detalle p {
  color: #000;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Contact Card --- */
.contact-card p {
  margin-bottom: 1.5rem;
  color: #444;
}

/* Contact info list */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}

.contact-icon {
  font-size: 1.4rem;
}

.contact-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Social buttons */
.social-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-social {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-social:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Colors for each platform */
.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.tiktok {
  background: #000;
  border: 2px solid #00f2ea;
}

.youtube {
  background: #ff0000;
}


/* Phone item */
.phone-item .contact-icon {
  color: #1a73e8;
}

.phone-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a73e8;
}

.phone-link:hover {
  text-decoration: underline;
}

/* Call button */
.btn-call {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.4rem;
  background: #1a73e8;
  color: white;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-call:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* --- ABOUT CARD --- */
.about-card {
  padding: 2rem;
}

.about-card h2 {
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  color: #222;
}

/* Text formatting */
.about-text p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #444;
  text-align: justify;
}

/* Optional subtle highlight */
.about-text p:first-child {
  font-weight: 500;
  color: #333;
}

/* --- Estudio detalle --- */
.estudio-box {
  display: flex;
  gap: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  animation: fadeIn 0.3s ease;
}

.estudio-img img {
  width: 260px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.estudio-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #222;
}

.estudio-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.2rem;
}

.estudio-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.estudio-list li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #333;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 800px) {
  .estudio-box {
    flex-direction: column;
    text-align: center;
  }

  .estudio-img img {
    width: 100%;
  }
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- TEAM SECTION --- */

.team-card {
  padding: 2rem;
}

.team-filter {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: #3b0f0f; /* burdeos oscuro */
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.filter-btn:hover {
  background: #5a1a1a;
}

.filter-btn.active {
  background: #8b2b2b;
}

.team-container {
  display: grid;
  gap: 2rem;
}

.team-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.team-member {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* Contenedor de la imagen */

/* Imagen del miembro */
.team-photo {
  width: 65%;
  height: 360px;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* llena el espacio */
}

/* Texto debajo */
.team-member h3 {
  margin: 1rem 0 0.3rem;
  text-align: center;
  font-size: 1.2rem;
  color: #3b0f0f;
}

.team-member p {
  margin: 0 0 1rem;
  text-align: center;
  color: #555;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}