/* VARIABLES GLOBALES */
:root {
  --primary: #1a2a40;      
  --primary-light: #2c3e50;
  --secondary: #dcdfe4;    
  --accent: #5a7b9c;       

  --bg-color: #ffffff;
  --bg-light: #f0f2f5;
  --card-bg: #faf9f8;
  --text-main: #333333;
  --text-muted: #555555;   

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --nav-height: 80px;      
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* RESET GENERAL */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: var(--font-heading); margin-top: 0; color: var(--primary); }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary); }
ul { margin: 0; padding-left: 1.2rem; }

/* Control dinámico de los enlaces según la página */
body.home-page .menu-legal { display: none !important; }
body.legal-page .menu-home { display: none !important; }
body.legal-page footer .legal-links { display: none !important; }

/* NAVEGACIÓN Y HAMBURGUESA */
nav {
  position: fixed;
  top: 0; width: 100%;
  height: var(--nav-height);
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 42, 64, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  z-index: 1000;
}
.logo-boutique {
  display: flex; align-items: center; gap: 15px;
  text-decoration: none; height: 100%;
}
.logo-img {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  background: #ffffff; border: 2px solid rgba(255, 255, 255, 0.2);
}
.logo-text {
  display: flex; flex-direction: column; line-height: 1.1; color: #ffffff;
}
.main-name { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.05em; margin: 0; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: #ffffff; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a:hover { color: var(--secondary); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 5px;
}
.menu-toggle .bar {
  width: 25px; height: 3px; background-color: #ffffff; border-radius: 2px;
  transition: all 0.3s ease;
}

/* HERO */
.hero {
  padding: 12rem 2rem 8rem;
  text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; margin-bottom: 1rem; color: #fff; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 3rem; font-weight: 300; }
.cta-button {
  display: inline-block; padding: 1rem 2.5rem; background: #fff; color: var(--primary);
  font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); color: var(--primary); }

/* SECCIONES COMUNES */
section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 4rem; position: relative; }
.section-title::after { content: ""; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--accent); }

/* ==========================================================================
   SERVICIOS (FONDO BLANCO)
   ========================================================================== */
#servicios {
    max-width: 100%;
    background-color: var(--bg-color); /* Blanco */
}

#servicios .section-title {
    margin-bottom: 5rem;
}

.group-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.group-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px; 
    height: 2px;
    background: var(--accent);
}

.boutique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem; 
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.boutique-card {
    background: var(--card-bg); /* Tarjetas en ligero gris para contrastar con el fondo blanco */
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    text-decoration: none; 
    display: block; 
    position: relative;
    border: 1px solid var(--secondary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    min-height: 280px; 
}

.boutique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 42, 64, 0.08); 
    border-color: transparent;
}

.boutique-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--primary);
    transition: width 0.4s ease;
}

.boutique-card:hover::before {
    width: 100%;
}

.boutique-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0 0 1rem 0;
    transition: color 0.3s ease;
}

.boutique-card:hover .card-title {
    color: var(--accent);
}

.boutique-card .card-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.boutique-card .card-cta {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.boutique-card .cta-arrow {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.boutique-card:hover .card-cta { 
    color: var(--primary); 
}
.boutique-card:hover .cta-arrow { 
    transform: translateX(5px); 
    color: var(--accent); 
}

/* ==========================================================================
   SOBRE MÍ (FONDO GRIS)
   ========================================================================== */
.about-wrap { 
  max-width: 100%;
  background-color: var(--bg-light); /* Fondo Gris clarito */
  padding: 6rem 5%; 
}
.about-wrap h2.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.about-card { 
  max-width: 1150px; 
  margin: 0 auto; 
  display: flex; 
  align-items: flex-start; 
  background: var(--bg-color); /* Tarjeta Blanca */
  padding: 4rem; 
  border-radius: var(--radius-md); 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); 
  border: 1px solid var(--secondary); 
}
.accent { 
  width: 4px; 
  height: 80px; 
  background-color: var(--primary); 
  margin-right: 2rem; 
  flex-shrink: 0; 
}
.name-col { 
  padding-right: 3rem; 
  min-width: 260px; 
  border-right: 1px solid var(--secondary); 
  margin-right: 3rem; 
  display: flex; 
  flex-direction: column; 
}
.name-main { 
  font-family: var(--font-heading); 
  font-size: 1.8rem; 
  font-weight: 700; 
  color: var(--primary); 
  line-height: 1.1; 
  margin-bottom: 0.5rem; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}
.name-sub { 
  font-family: var(--font-body); 
  font-size: 0.85rem; 
  color: var(--text-muted); 
  text-transform: uppercase; 
  letter-spacing: 5px; 
}
.about-bio { 
  color: var(--text-main); 
  font-size: 0.95rem; 
  line-height: 1.8; 
  display: flex; 
  flex-direction: column; 
  gap: 1.2rem; 
}
.about-bio p { margin: 0; }

/* Botón VCard - Estilo Sólido Corporativo */
.about-actions {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.vcard-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background-color: var(--primary); /* Azul marino corporativo */
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md); 
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 15px rgba(26, 42, 64, 0.1);
  transition: all 0.3s ease;
}

.vcard-btn svg {
  transition: transform 0.3s ease;
}

/* Efecto Hover: Cambia al color de acento y se eleva ligeramente */
.vcard-btn:hover {
  background-color: var(--accent); 
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 42, 64, 0.2);
}

.vcard-btn:hover svg {
  transform: scale(1.1);
}

/* ==========================================================================
   CONTACTO (FONDO BLANCO)
   ========================================================================== */
#contacto { 
    max-width: 100%; 
    background-color: var(--bg-color); /* Blanco */
}
.contact-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-msg-col h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.contact-msg-col p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.highlight { font-weight: 600; color: var(--primary) !important; border-left: 3px solid var(--accent); padding-left: 1rem; }
.contact-form-card { background: var(--card-bg); border: 1px solid var(--secondary); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-light); margin-bottom: 8px; }
.req { color: #d9534f; margin-left: 2px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--secondary); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.95rem; background: #ffffff; transition: all 0.3s; color: var(--text-main); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(26, 42, 64, 0.05); }

/* Estilos extra para el select agrupado */
optgroup { font-weight: 600; color: var(--primary); font-style: normal; background-color: #f9f9f9; }
option { font-weight: 400; color: #333; background-color: #ffffff; padding: 4px; }

.consent-box { display: flex; align-items: flex-start; gap: 10px; margin: 1.5rem 0; }
.consent-box input { width: auto; margin-top: 3px; }
.consent-box label { font-size: 0.85rem; text-transform: none; color: var(--text-muted); letter-spacing: normal; margin: 0; }
.link-legal { color: var(--accent); text-decoration: underline; }
.btn-submit { width: 100%; background: var(--primary); color: #fff; border: none; padding: 14px; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-radius: var(--radius-md); cursor: pointer; transition: background 0.3s; }
.btn-submit:hover { background: var(--accent); }
.form-legend { font-size: 0.8rem; color: #999; margin-top: 1rem; text-align: center; }

/* PÁGINA LEGAL COMPLETA */
.legal-page { background-color: #f9fafb; }
.legal-page-content { max-width: 900px; margin: 120px auto 4rem; padding: 0 2rem; }
.legal-header { text-align: center; margin-bottom: 4rem; }
.legal-header h1 { font-size: 2.8rem; color: var(--primary); border-bottom: none; padding-bottom: 0; margin-bottom: 1rem; }
.legal-header .subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 1.5rem; }
.legal-header .last-updated { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-weight: 600; background: rgba(90, 123, 156, 0.1); display: inline-block; padding: 6px 12px; border-radius: 20px; }
.legal-section { background: var(--bg-color); border-radius: var(--radius-lg); padding: 3.5rem; margin-bottom: 3rem; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid var(--secondary); scroll-margin-top: 100px; }
.legal-section h2 { font-size: 2rem; color: var(--primary); border-bottom: 2px solid var(--secondary); padding-bottom: 1rem; margin-bottom: 2rem; }
.legal-section h3 { font-size: 1.3rem; color: var(--primary-light); margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-section h4 { font-size: 1.1rem; margin-top: 1.5rem; color: var(--accent); }
.legal-section p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.2rem; font-size: 0.95rem; }
.legal-section ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-muted); font-size: 0.95rem; }
.legal-section ul li { margin-bottom: 0.5rem; line-height: 1.6; }


/* ==========================================================================
   PÁGINA VCARD (TARJETA PROFESIONAL)
   ========================================================================== */
body.vcard-page { background-color: var(--bg-light); }
.vcard-page .top-line { height: 5px; background: var(--primary-light); }
.vcard-page .page { min-height: calc(100vh - 5px); display: flex; flex-direction: column; }

.vcard-page .hero {
  background: linear-gradient(135deg, #111d2d 0%, var(--primary) 100%);
  padding: 70px 20px 95px;
  clip-path: none;
}
.vcard-page .hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -160px;
  top: -180px;
  pointer-events: none;
}
.vcard-page .hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.vcard-page .eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.vcard-page .hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.08; margin: 0; color: #ffffff;}
.vcard-page .hero p {
  max-width: 650px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 400;
}

.vcard-page main {
  width: min(100% - 32px, 860px);
  margin: -55px auto 70px;
  padding: 0;
  position: relative;
  z-index: 2;
  flex: 1;
}

.vcard-page section.contact-card {
  background: #ffffff;
  border: 1px solid var(--secondary);
  box-shadow: 0 18px 40px rgba(26, 42, 64, 0.08);
  padding: clamp(30px, 5vw, 60px);
  border-radius: var(--radius-lg);
  margin: 0;
  max-width: none;
}

.vcard-page .system-msg { text-align: center; padding: 45px 20px; font-weight: 500; color: var(--primary); }
.vcard-page .system-msg.error { color: #b73e3e; }
.vcard-page .hidden { display: none !important; }

.vcard-page .profile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 42px;
  align-items: center;
}
.vcard-page .photo-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-light);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 1px var(--secondary), 0 10px 25px rgba(26,42,64, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcard-page .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.vcard-page .photo-placeholder { color: var(--primary-light); font-family: var(--font-heading); font-size: 4rem; line-height: 1; }
.vcard-page .name { margin: 0; color: var(--primary); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.1; }
.vcard-page .title { margin: 10px 0 4px; color: var(--primary-light); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.vcard-page .organization { margin: 0; color: var(--text-muted); font-size: 1rem; }

.vcard-page .divider { height: 1px; background: var(--secondary); margin: 42px 0; position: relative; }
.vcard-page .divider::before { content: ""; position: absolute; left: 0; top: -1px; width: 70px; height: 2px; background: var(--primary); }

.vcard-page .details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vcard-page .detail { padding: 16px 0; border-bottom: 1px solid var(--secondary); }
.vcard-page .detail-label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.vcard-page .detail-value { color: var(--primary); font-size: 0.98rem; line-height: 1.5; text-decoration: none; word-break: break-word; transition: color 0.2s ease; }
.vcard-page a.detail-value:hover { color: var(--primary-light); text-decoration: underline; }

.vcard-page .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.vcard-page .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 32px; border: 1px solid var(--primary);
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius-md);
  transition: all 0.2s ease; cursor: pointer;
}
.vcard-page .button-primary { background: var(--primary); color: #ffffff; }
.vcard-page .button-primary:hover { background: #111d2d; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(26,42,64, 0.15); color: #ffffff; }
.vcard-page .button-secondary { background: transparent; color: var(--primary); }
.vcard-page .button-secondary:hover { background: var(--bg-light); border-color: #111d2d; color: #111d2d; }

.vcard-page footer.footer { background: transparent; padding: 0 20px 35px; color: var(--text-muted); text-align: center; font-size: 0.8rem; }
.vcard-page footer.footer::before { content: ""; display: block; width: 45px; height: 1px; margin: 0 auto 20px; background: var(--secondary); }

/* REGLAS RESPONSIVE (MÓVILES) */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--secondary);
    display: none; align-items: flex-start;
  }
  .nav-links.active { display: flex; }
  .nav-links a { width: 100%; padding: 1.5rem 2rem; border-top: 1px solid #f0f0f0; color: var(--primary); }

  .hero { padding: 10rem 1.5rem 6rem; clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
  section, .about-wrap { padding: 4rem 1.5rem; }
  
  /* SOBRE MI EN MÓVIL */
  .about-card { flex-direction: column; padding: 2.5rem; }
  .name-col { 
    padding-right: 0; 
    margin-right: 0; 
    border-right: none; 
    margin-bottom: 1.5rem; 
    border-bottom: 1px solid var(--secondary); 
    padding-bottom: 1.5rem; 
    width: 100%;
  }
  .accent { display: none; }
  
  /* Botón VCard móvil integrado directamente aquí */
  .vcard-btn {
    width: 100%;
    justify-content: center;
  }
  
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .contact-form-card { padding: 1.5rem; }
  
  .legal-section { padding: 2rem; }
}

@media (max-width: 700px) {
  .vcard-page .hero { padding: 55px 20px 85px; clip-path: none; }
  .vcard-page main { width: min(100% - 20px, 920px); margin-top: -45px; padding: 0; }
  .vcard-page section.contact-card { padding: 30px 22px; }
  .vcard-page .profile { grid-template-columns: 1fr; gap: 25px; text-align: center; }
  .vcard-page .photo-wrap { margin: 0 auto; }
  .vcard-page .divider::before { left: 50%; transform: translateX(-50%); }
  .vcard-page .details { grid-template-columns: 1fr; gap: 0; }
  .vcard-page .actions { flex-direction: column; }
  .vcard-page .button { width: 100%; }
}

/* FOOTER GLOBAL */
footer {
  background: var(--primary); padding: 4rem 2rem; text-align: center; color: rgba(255,255,255,0.7);
}
.footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: #fff; letter-spacing: 0.1em; margin-bottom: 1rem; }
.legal-links { margin-top: 2rem; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.legal-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-links a:hover { color: #fff; }

/* BANNER DE COOKIES */
.cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background: #ffffff; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; z-index: 9999; flex-wrap: wrap; gap: 1.5rem; transition: bottom 0.5s ease-in-out; border-top: 3px solid var(--primary); }
.cookie-banner.show { bottom: 0; }
.cookie-content { flex: 1 1 60%; min-width: 300px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.cookie-content a { color: var(--accent); text-decoration: underline; font-weight: 500; }
.cookie-actions { display: flex; gap: 10px; }
.btn-accept, .btn-reject { padding: 10px 20px; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; font-size: 0.85rem; transition: all 0.2s; }
.btn-accept { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-accept:hover { background: var(--accent); border-color: var(--accent); }
.btn-reject { background: transparent; color: var(--text-muted); border: 1px solid var(--secondary); }
.btn-reject:hover { background: var(--secondary); color: var(--text-main); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; text-align: center; padding: 1.5rem; }
  .cookie-actions { width: 100%; justify-content: center; flex-direction: column; }
  .btn-accept, .btn-reject { width: 100%; }
}