/* Modern Fusioon Design 2025 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root{
  --primary:#f1c21b; /* primary now maps to yellow */
  --primary-dark:#d4a80c; /* darker yellow for accents */
  --accent:#ff6b35;
  --success:#24a148;
  --warning:#f1c21b;
  --light-bg:#f4f7ff;
  --card:#ffffff;
  --text:#161616;
  --text-muted:#525252;
  --border:#e8e8e8;
  --shadow-sm: 0 2px 8px rgba(15, 98, 254, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 98, 254, 0.12);
  --shadow-lg: 0 12px 40px rgba(15, 98, 254, 0.15);
}

/* Títulos y palabras dominantes en mayúsculas */
h1, h2, h3, .hero h1, .hero h2, .module-title, .section-title, .feature-title,
.form h3, .card h3, .card h4, .contact-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Specific: uppercase for the highlighted proposal text */
.u360-text { text-transform: uppercase; }
*{box-sizing:border-box}

body{
  font-family:'Inter', -apple-system, system-ui, sans-serif;
  margin:0;
  padding:0;
  color:#e9f3ff;
  background:linear-gradient(135deg, #000000 0%, #000000 100%);
  min-height:100vh;
  overflow-x: hidden;
  width:100%;
}

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:20px;
  box-sizing:border-box;
}

/* Decorative tiled construction icons behind content (two layered SVG patterns, blurred + pixelated) */
body::before{
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Layer 1: small hardhat icons for even tiling */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23f1c21b' d='M12 2c-1.1 0-2 .9-2 2v1H6c-1.1 0-2 .9-2 2v2h16V7c0-1.1-.9-2-2-2h-4V4c0-1.1-.9-2-2-2zM4 13v2h16v-2H4zm0 4v2h16v-2H4z'/></svg>"),
                    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23f1c21b' d='M3 21h18v-2H3v2zM5 17h3v-4H5v4zM10 17h3v-6h-3v6zM15 17h3v-9h-3v9z'/></svg>");
  background-repeat: repeat, repeat;
  background-position: 0 0, center;
  background-size: 56px 56px, 140px 140px;
  opacity: 0.12;
  filter: blur(2.6px) saturate(0.9);
  image-rendering: pixelated;
  transform: translateZ(0);
}

/* Layer 2: softer overlay (subtle bricks/gear) to add depth */
body::after{
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect fill='%23f1c21b' x='2' y='13' width='6' height='2'/><rect fill='%23f1c21b' x='9' y='11' width='6' height='2'/><rect fill='%23f1c21b' x='16' y='9' width='6' height='2'/></svg>");
  background-repeat: repeat;
  background-position: center;
  background-size: 240px 240px;
  opacity: 0.06;
  filter: blur(4px) saturate(0.85);
  image-rendering: pixelated;
  mix-blend-mode: overlay;
}

/* Ensure main content and footer sit above the decorative icons */
main, footer, header, .container{ position: relative; z-index: 2 }

@media (max-width: 920px){
  body::before, body::after{ display:none }
}

header{
  background: white;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(2,6,23,0.12);
  position:sticky;
  top:0;
  z-index:100;
  width:100%;
  overflow:hidden;
}

header .container{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:48px 20px;
  width:100%;
  box-sizing:border-box;
  max-width:100%;
  margin:0 auto;
  flex-wrap:wrap;
  position:relative;
}

.logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  text-decoration:none;
  color:inherit;
  flex-shrink:0;
  order:0;
  flex:0 0 auto;
  position:absolute;
  left:40px;
  top:50%;
  transform:translateY(-50%);
}

.logo a{color:inherit;text-decoration:none;display:flex;align-items:center;gap:8px}

.logo a img{
  height:80px;
  width:auto;
  object-fit:contain;
}

.logo .word{font-size:24px;letter-spacing:-0.8px;font-weight:900}

.logo .infinite{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  background:var(--primary);
  color:white;
  font-weight:900;
  font-size:22px;
  transform:scaleY(0.8);
  box-shadow:0 6px 18px rgba(15,98,254,0.14)
}

.site-tag{font-size:11px;opacity:0.92;margin-left:10px;font-weight:700;letter-spacing:0.8px;text-transform:uppercase}

.header-right{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:nowrap;
  order:2;
  position:absolute;
  left:50%;
  right:auto;
  top:50%;
  transform:translate(-50%, -50%);
}

/* Right-aligned auth links (Perfil / Cerrar sesión) */
.header-auth{
  position:absolute;
  right:40px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  gap:12px;
  align-items:center;
}

.header-auth .nav-link{ padding:8px 12px; font-size:14px; background:transparent; border-radius:8px }
.header-auth .nav-link:hover{ background:rgba(0,0,0,0.04) }

.header-search{
  display:flex;
  align-items:center;
  gap:8px;
  background:transparent;
  padding:6px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  flex-shrink:0;
  overflow:visible;
  order:1;
  min-width:280px;
}

.header-search input[type=search]{
  padding:8px 10px;
  border-radius:8px;
  border:none;
  background:rgba(2,6,23,0.03);
  color:var(--text);
  font-weight:500;
  outline:none;
  font-size:13px;
  flex:1;
  transition:all 0.3s;
}

.header-search input[type=search]:focus{
  background:rgba(255,255,255,0.2);
  box-shadow:0 0 0 2px rgba(46, 204, 113, 0.3);
}

.header-search input[type=search]::placeholder{color:#98a2b3}

.header-search button{
  background:var(--warning);
  border:none;
  color:#000000;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  transition:all 0.18s ease;
  font-size:12px;
  flex-shrink:0;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.header-search button:hover{
  background:#d4a80c;
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 6px 18px rgba(241,194,27,0.18);
}

.nav-link{
  color:var(--text);
  text-decoration:none;
  padding:8px 11px;
  border-radius:8px;
  font-weight:600;
  opacity:0.95;
  transition:all 0.3s;
  display:inline-block;
  font-size:12px;
  white-space:nowrap;
}

.nav-link{
  color:#000000;
  text-decoration:none;
  padding:12px 18px;
  border-radius:10px;
  font-weight:700;
  opacity:0.98;
  transition:all 0.25s;
  display:inline-block;
  font-size:16px;
  white-space:nowrap;
}
.nav-icon i{font-size:14px;}

.nav-link:hover{
  background:rgba(255,255,255,0.15);
  opacity:1;
}

.hero{padding:72px 20px;text-align:center;background:transparent}

.hero h1{margin:0 0 16px 0;font-size:52px;color:#ffffff;font-weight:600;letter-spacing:-1.5px;line-height:1.2}

.hero p{color:#dbeefc;margin:0 0 28px;font-size:19px;line-height:1.7;max-width:700px;margin-left:auto;margin-right:auto}

.controls{margin:32px 0;display:flex;justify-content:center;gap:14px;flex-wrap:wrap}

.button{
  border:none;
  padding:14px 28px;
  border-radius:14px;
  cursor:pointer;
  background:var(--primary);
  color:white;
  font-weight:800;
  font-size:16px;
  transition:all 0.3s;
  box-shadow:var(--shadow-sm);
  display:inline-flex;
  align-items:center;
  gap:8px
}

.button:hover{
  background:var(--primary-dark);
  transform:translateY(-3px);
  box-shadow:var(--shadow-lg)
}

.button.accent{background:var(--accent)}

.button.accent:hover{background:#e55a1f}

.secondary{background:transparent;border:2.5px solid var(--primary);color:var(--primary)}

.secondary:hover{background:var(--light-bg);border-color:var(--primary-dark)}

.features{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:40px}

/* Centered hero search (when moved from header) */
.hero-search{
  width:100%;
  max-width:760px;
  margin:18px auto 0;
  background:white;
  padding:8px;
  border-radius:12px;
  border:1px solid var(--border);
  display:flex;
  gap:8px;
  align-items:center;
}
.hero-search input[type=search]{
  background:transparent;
  color:var(--text);
  padding:10px 12px;
  border-radius:8px;
  border:none;
  outline:none;
  font-size:15px;
  flex:1;
}
.hero-search input::placeholder{color:#9aa0a6}
.hero-search button{background:var(--primary);color:white;padding:10px 16px;border-radius:10px}
.hero-search button{background:var(--warning);color:#000;padding:10px 16px;border-radius:10px}
.hero-search button:hover{background:#d4a80c;transform:translateY(-2px);box-shadow:0 8px 20px rgba(241,194,27,0.14)}

/* Make the APK download button yellow and readable */
#apk-download-btn.button{
  background: var(--warning) !important;
  color: #000 !important;
  border: none !important;
}
#apk-download-btn.button:hover{
  background: #d4a80c !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(241,194,27,0.14) !important;
}

/* Make Solicitar Presupuesto buttons in the quote module yellow */
.module.quote-module .button,
.module.quote-module a.button{
  background: var(--warning);
  color: #000;
  border: none;
}
.module.quote-module .button:hover,
.module.quote-module a.button:hover{
  background: #d4a80c;
  transform: translateY(-2px);
}

/* Merged feature card replacing Misión / Visión / Experiencia */
.feature-merged{
  background:transparent;
  padding:8px 0 0 0;
  border-radius:0;
  box-shadow:none;
  border:0;
  width:100%;
  max-width:none;
  margin:64px 0 0; /* espaciar considerablemente desde la búsqueda */
  text-align:center;
}
.feature-merged .feature-header{display:flex;align-items:center;justify-content:center;gap:12px}
.feature-merged strong{color:var(--warning);font-size:20px;display:block;margin:0}
.feature-merged .meta{color:#ffffff;font-size:14px;line-height:1.7;margin-top:8px;max-width:980px;margin-left:auto;margin-right:auto}

/* Header nav-link: soft underline + slight scale on hover */
.nav-link{
  position:relative;
  padding:8px 11px;
  transition:transform 0.18s ease, color 0.18s ease;
}
.nav-link::after{
  content: '';
  position: absolute;
  left:12px;
  right:12px;
  bottom:6px;
  height: 2px;
  background: var(--warning);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 2px;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-link:hover::after{
  opacity: 0.95;
  transform: scaleX(1);
}
.nav-link:hover{
  color: var(--warning);
  transform: scale(1.04);
}

/* auth button variant for header */
.nav-link.auth-button{
  background:rgba(255,255,255,0.08);
  border:2px solid rgba(255,255,255,0.06);
  padding:12px 18px;
  border-radius:12px;
}

.nav-link.auth-button{ color: #000000 }

/* Ensure auth logo fits nicely inside the header button */
.nav-link.auth-button img{ height:32px; width:auto; display:block }

@media (max-width:720px){
  .lang-selector{margin-left:0;margin-top:8px}
  .mobile-menu .lang-selector{display:flex;gap:8px;padding-top:8px;border-top:1px solid var(--border);margin-top:12px}
}

/* 360° sliding frame around the title (draws the rect perimeter) */
.underline-360{position:relative;display:inline-block;padding:6px 12px}
.underline-360 .u360-text{position:relative;z-index:2;display:inline-block}
.u360-svg{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.u360-rect{
  stroke: var(--warning);
  stroke-dasharray: 420; /* perimeter approximation to animate along */
  stroke-dashoffset: 420;
  stroke-linecap: round;
  transform-origin: 50% 50%;
  transition: stroke 0.2s ease;
  animation: u360-draw 2.4s linear infinite;
}

@keyframes u360-draw{
  0%   { stroke-dashoffset: 420; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -420; }
}

@media (prefers-reduced-motion: reduce){
  .u360-rect{ animation: none; stroke-dashoffset: 0 }
}

/* Quiénes somos: forzar texto blanco en toda la página EXCEPTO header */
.qs-page main,
.qs-page main h1,.qs-page main h2,.qs-page main h3,.qs-page main h4,.qs-page main h5,.qs-page main h6,
.qs-page main p,.qs-page main li,.qs-page main a,.qs-page main strong,.qs-page main .meta,
.qs-page footer{
  color: #ffffff !important;
}
.qs-page .feature { color: #ffffff; }
.qs-page .button.secondary { color: #000; }
/* Ensure header nav-links stay dark on qs-page */
.qs-page header .nav-link { color: var(--text) !important; }
.qs-page header .nav-link:hover { color: var(--warning) !important; }

/* Quiénes somos: make feature icons yellow for emphasis */
.qs-page .feature i, .qs-page .feature .fa, .qs-page .feature .fas {
  color: var(--warning) !important;
}

/* Pulsing luminosity title for Nuestra propuesta (no desaparece) */
@keyframes pulse-bright {
  0% {
    opacity: 1;
    filter: brightness(1);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  50% {
    opacity: 1;
    filter: brightness(1.25);
    text-shadow: 0 0 12px rgba(255,255,255,0.65);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
}
.feature-merged .blink{
  display:inline-block;
  /* animation removed: no pulsing brightness per request */
  animation: none;
  filter: none;
  text-shadow: none;
}

.feature{
  background:var(--card);
  padding:28px;
  border-radius:16px;
  box-shadow:var(--shadow-sm);
  border:1px solid var(--border);
  transition:all 0.4s;
  position:relative;
  overflow:hidden
}

.feature::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg, var(--primary), var(--accent));opacity:0;transition:opacity 0.3s}

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

.feature:hover::before{opacity:1}

.feature strong{color:var(--primary);font-size:18px;display:flex;align-items:center;gap:8px}

.feature i{font-size:22px}

.feature .meta{margin-top:12px;font-size:14px;color:var(--text-muted);line-height:1.6}

.app-download{
  margin:60px 0 20px;
  padding:32px;
  border-radius:18px;
  background:linear-gradient(120deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.12));
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  box-shadow:var(--shadow-sm);
}

/* Modules stacked vertically and catalog slider */
.modules-vertical{display:flex;flex-direction:column;gap:20px}
.module{padding:18px;border-radius:12px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.03);box-shadow:0 6px 18px rgba(2,6,23,0.06);color:var(--text)}
.module .module-header{display:flex;align-items:center;justify-content:space-between}

/* Ensure specific page sections use white text for contrast on dark body */
.modules-vertical .module,
.modules-vertical .module .module-header,
#catalog-module,
#catalog-module .module-header,
#catalog-module .catalog-slider,
#quote-module,
#quote-module .module-body {
  color: #ffffff !important;
}

/* App download section text white */
.app-download-text, .app-download-text h3, .app-download-text p {
  color: #ffffff !important;
}

/* Footer text white */
.footer{ color: #ffffff !important; }

.catalog-slider{margin-top:12px;border-radius:12px;overflow:hidden}
.slider-viewport{overflow:hidden}
.slider-track{display:flex;gap:12px;align-items:center;width:max-content;animation:scroll-right 22s linear infinite}
.slide-group{display:flex;gap:12px}
.slide-group img{width:260px;height:160px;object-fit:cover;border-radius:8px;display:block}
.catalog-slider:hover .slider-track{animation-play-state:paused}

@keyframes scroll-right{
  0%{transform:translateX(-50%)}
  100%{transform:translateX(0%)}
}

@media (max-width:800px){
  .slide-group img{width:180px;height:120px}
  .slider-track{animation-duration:28s}
}

/* Mobile header adjustments */
/* Hide hamburger by default (desktop) */
.mobile-hamburger{display:none}
/* Hide mobile menu by default on desktop; shown only inside mobile media query */
.mobile-menu{display:none}
@media (max-width:720px){
  header .container{justify-content:center;padding:18px 16px}
  .logo{position:static;top:auto;left:auto;transform:none}
  .logo a img{height:70px}
  .header-right{position:static;right:auto;top:auto;transform:none;display:none}

  /* Hamburger visible only on mobile */
  .mobile-hamburger{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:var(--primary);color:white;border:none;position:absolute;right:16px;top:50%;transform:translateY(-50%);z-index:120;cursor:pointer}

  /* Mobile menu that drops below header */
  .mobile-menu{display:none;background:white;color:var(--text);position:relative;width:100%;box-shadow:0 6px 18px rgba(2,6,23,0.12);border-top:1px solid var(--border);padding:12px;box-sizing:border-box}
  .mobile-menu .nav-link{display:block;padding:10px 8px;border-radius:8px;color:var(--text);background:transparent;margin-bottom:6px}
  .mobile-menu .nav-link.nav-icon img{height:28px}

  /* When open, show mobile menu */
  header.mobile-open + .mobile-menu{display:block}
}


.app-download-text h3{margin:0 0 10px;font-size:26px;color:var(--text)}
.app-download-text p{margin:0 0 18px;color:var(--text-muted);max-width:640px;line-height:1.6}

.app-download-buttons{display:flex;gap:12px;flex-wrap:wrap}
.app-download-buttons .store{padding:12px 18px;font-size:14px;border-radius:12px;font-weight:700;box-shadow:none}
.app-download-buttons .ios{background:var(--text);color:white}
.app-download-buttons .android{background:var(--success);color:white}
.app-download-buttons .store:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}

.app-download-badge{
  padding:14px 16px;
  border-radius:14px;
  background:white;
  border:1px dashed var(--primary);
  color:var(--primary-dark);
  font-weight:700;
  min-width:220px;
  text-align:center;
}

.products{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:32px}

.product{
  background:var(--card);
  padding:24px;
  border-radius:16px;
  box-shadow:var(--shadow-sm);
  border:1px solid var(--border);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:all 0.4s;
  position:relative
}

.product::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg, rgba(15,98,254,0.05), rgba(255,107,53,0.05));border-radius:16px;opacity:0;transition:opacity 0.3s;pointer-events:none}

.product:hover{
  box-shadow:var(--shadow-lg);
  transform:translateY(-8px);
  border-color:var(--primary)
}

.product:hover::after{opacity:1}

.product h4{margin:0 0 12px 0;font-size:18px;color:var(--text);font-weight:800;line-height:1.4}

.product .meta{font-size:14px;color:var(--text-muted);margin-bottom:16px;line-height:1.6}

.price{font-weight:900;color:var(--accent);font-size:24px;margin:12px 0}

.supplier{font-size:13px;color:var(--text-muted);font-weight:700;display:flex;align-items:center;gap:6px}

.form{
  max-width:560px;
  margin:40px auto;
  padding:32px;
  border-radius:18px;
  background:var(--card);
  box-shadow:var(--shadow-md);
  border:1px solid var(--border)
}

.form h3{margin:0 0 24px 0;font-size:28px;font-weight:900;color:var(--text)}

.field{margin-bottom:20px}

.field label{
  display:block;
  margin-bottom:10px;
  font-weight:800;
  color:var(--text);
  font-size:15px
}

.field input{
  width:100%;
  padding:14px 16px;
  border:1.5px solid var(--border);
  border-radius:12px;
  background:white;
  font-size:15px;
  transition:all 0.3s;
  font-weight:500
}

.field input:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(15, 98, 254, 0.1)
}

.footer{
  text-align:center;
  padding:32px;
  margin-top:48px;
  color:var(--text-muted);
  font-size:13px;
  border-top:1px solid var(--border)
}

@media (max-width:1100px){
  .features{grid-template-columns:repeat(2,1fr)}
  .products{grid-template-columns:repeat(2,1fr)}
  .hero h1{font-size:42px}
  .header-search input[type=search]{min-width:200px}
}

@media (max-width:820px){
  header .container{
    gap:8px;
    padding:14px 16px;
    justify-content:flex-start;
  }
  .header-search{
    order:2;
    width:100%;
    margin-top:8px;
  }
  .header-right{
    order:3;
    width:100%;
    gap:6px;
    margin-left:0;
    margin-top:8px;
    position:static;
    transform:none;
  }
  .nav-link{font-size:11px;padding:6px 8px}
  .app-download{flex-direction:column;align-items:flex-start}
  .app-download-badge{width:100%;text-align:left}
}

@media (max-width:600px){
  header .container{
    flex-direction:row;
    align-items:center;
    gap:8px;
    padding:14px 12px;
    justify-content:flex-start;
  }
  .logo{justify-content:flex-start}
  .logo .word{font-size:18px}
  .logo .infinite{width:32px;height:32px;font-size:16px}
  .site-tag{font-size:8px;margin-left:4px}
  .header-search{
    order:2;
    margin-left:auto;
    width:auto;
    margin-top:0;
  }
  .header-search input[type=search]{
    font-size:12px;
    padding:8px 10px;
  }
  .header-search button{
    padding:8px 12px;
  }
  .header-right{
    order:3;
    width:auto;
    gap:4px;
    margin-left:auto;
    margin-top:0;
    position:static;
    transform:none;
  }
  .nav-link{
    font-size:10px;
    padding:5px 6px;
  }
  .app-download{padding:24px}
  .app-download-buttons{width:100%}
  .app-download-buttons .store{flex:1;justify-content:center;text-align:center}
}

@media (max-width:480px){
  header{
    position:sticky;
  }
  header .container{
    padding:8px 10px;
    gap:6px;
  }
  .logo .word{font-size:16px}
  .logo .infinite{width:28px;height:28px;font-size:14px}
  .site-tag{display:none}
  .header-search{
    width:100%;
  }
  .header-search input[type=search]{
    font-size:11px;
    padding:7px 8px;
  }
  .header-search button{
    padding:7px 10px;
    font-size:11px;
  }
  .nav-link{
    font-size:9px;
    padding:4px 5px;
  }
  .app-download{padding:18px}
  .app-download-text h3{font-size:22px}
}

/* ============================================
   SELECTOR BOT - Chatbot Profesional
   ============================================ */

.selector-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  z-index: 9999;
}

/* Botón flotante */
.selector-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(251,191,36,0.4), 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  animation: selector-pulse 2.5s ease-in-out infinite;
  position: relative;
  overflow: visible;
}

.selector-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 36px rgba(251,191,36,0.5), 0 4px 12px rgba(0,0,0,0.15);
}

.selector-toggle:active {
  transform: scale(0.98);
}

.selector-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.5)) drop-shadow(0 0 1px rgba(0,0,0,0.8));
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  padding: 4px;
}

.selector-toggle:hover .selector-icon-img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.6)) drop-shadow(0 0 2px rgba(0,0,0,0.9));
}

.selector-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

@keyframes selector-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(251,191,36,0.4), 0 2px 8px rgba(0,0,0,0.1); }
  50% { box-shadow: 0 8px 32px rgba(251,191,36,0.55), 0 4px 12px rgba(0,0,0,0.15); }
}

/* Panel principal */
.selector-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 420px;
  height: 600px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  overflow: hidden;
}

.selector-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Sidebar de chats */
.selector-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  border-radius: 20px 0 0 20px;
}

.selector-sidebar.open {
  transform: translateX(0);
  box-shadow: 8px 0 32px rgba(0,0,0,0.2);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header h4 i {
  color: #fbbf24;
}

.new-chat-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.new-chat-btn:hover {
  background: rgba(251,191,36,0.25);
  transform: scale(1.05);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.chat-item:hover {
  background: rgba(255,255,255,0.08);
}

.chat-item.active {
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.3);
}

.chat-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  flex-shrink: 0;
}

.chat-item-info {
  flex: 1;
  min-width: 0;
}

.chat-item-title {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-time {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  margin-top: 2px;
}

.chat-item-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chat-item:hover .chat-item-actions {
  opacity: 1;
}

.chat-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}

.chat-action-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.chat-action-btn.delete:hover {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.close-sidebar-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.close-sidebar-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Panel principal de chat */
.selector-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Header mejorado */
.selector-header {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px 20px 0 0;
}

.selector-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,0.1);
  border: none;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  background: rgba(0,0,0,0.15);
}

.selector-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selector-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.selector-avatar img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.selector-header-content h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

.selector-status {
  margin: 0;
  font-size: 12px;
  color: rgba(31,41,55,0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.selector-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selector-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,0.1);
  border: none;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.selector-action-icon:hover {
  background: rgba(0,0,0,0.15);
  transform: scale(1.05);
}

/* Cuerpo del chat */
.selector-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fb;
  min-height: 0;
}

.selector-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mensajes */
.selector-message {
  display: flex;
  gap: 10px;
  animation: messageIn 0.3s ease;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.selector-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.message-avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.message-content {
  max-width: 75%;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.selector-message.bot .message-bubble {
  background: #fff;
  color: #1f2937;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.selector-message.user .message-bubble {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}

.message-time {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
  padding: 0 4px;
}

.selector-message.user .message-time {
  text-align: right;
}

/* Adjuntos en mensajes */
.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.attachment-image {
  border-radius: 12px;
  overflow: hidden;
  max-width: 200px;
}

.attachment-image img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.attachment-image img:hover {
  transform: scale(1.02);
}

.attachment-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
  font-size: 12px;
  color: #4b5563;
}

.attachment-file i {
  color: #6b7280;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.typing-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.typing-avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Results sections */
.results-section {
  margin: 8px 0;
}

.results-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f3f4f6;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.result-card:hover {
  background: #e5e7eb;
  border-color: #fbbf24;
  transform: translateX(4px);
}

.result-icon {
  font-size: 20px;
}

.result-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.result-price {
  font-size: 13px;
  font-weight: 700;
  color: #059669;
}

/* Footer con input */
.selector-footer {
  padding: 16px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 20px 20px;
}

.selector-input-container {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.selector-attachments {
  display: flex;
  gap: 4px;
}

.attach-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.attach-btn:hover {
  background: #e5e7eb;
  color: #3b82f6;
}

.selector-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.selector-input-wrapper:focus-within {
  border-color: #3b82f6;
  background: #fff;
}

.selector-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 14px;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
  max-height: 120px;
}

.selector-input:focus {
  outline: none;
}

.selector-input::placeholder {
  color: #9ca3af;
}

/* Attachments preview */
.attachments-preview {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px 0;
}

.preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.preview-item.image {
  width: 60px;
  height: 60px;
}

.preview-item.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item.file {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #e5e7eb;
  font-size: 11px;
  color: #4b5563;
}

.remove-attachment {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.selector-send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.selector-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

.selector-send:active {
  transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
  .selector-container {
    bottom: 16px;
    right: 16px;
  }
  
  .selector-toggle {
    width: 56px;
    height: 56px;
  }
  
  .selector-icon-img {
    width: 40px;
    height: 40px;
  }
  
  .selector-panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    max-height: 600px;
    bottom: 72px;
  }
  
  .selector-sidebar {
    width: 100%;
    border-radius: 20px;
  }
  
  .selector-header {
    padding: 14px 16px;
  }
  
  .selector-avatar {
    width: 38px;
    height: 38px;
  }
  
  .selector-avatar img {
    width: 30px;
    height: 30px;
  }
  
  .menu-btn,
  .selector-action-icon {
    width: 36px;
    height: 36px;
  }
  
  .selector-body {
    padding: 16px;
  }
  
  .message-content {
    max-width: 85%;
  }
  
  .selector-footer {
    padding: 12px;
  }
  
  .attach-btn {
    width: 36px;
    height: 36px;
  }
  
  .selector-send {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 400px) {
  .selector-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 68px;
  }
  
  .selector-toggle {
    width: 52px;
    height: 52px;
  }
  
  .selector-icon-img {
    width: 36px;
    height: 36px;
  }
}

/* Selector Results Styling */
.selector-results-section {
  margin: 12px 0;
}

.selector-section-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.selector-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.selector-result-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 12px;
}

.selector-result-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.15);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.card-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price, .card-profession, .card-type {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.card-provider, .card-rating {
  font-size: 10px;
  color: #9ca3af;
}

.card-price {
  font-weight: 600;
  color: var(--primary);
  margin-top: 6px;
}

@media (max-width: 600px) {
  .selector-results-grid {
    grid-template-columns: 1fr;
  }

  .selector-result-card {
    padding: 10px;
  }

  .card-icon {
    font-size: 20px;
  }
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */

.profile-section {
  padding: 40px 0;
}

.profile-header {
  text-align: center;
  margin-bottom: 40px;
}

.profile-header h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.profile-header h1 i {
  color: var(--primary);
}

.profile-header p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.profile-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.profile-card:hover {
  box-shadow: var(--shadow-md);
}

.profile-card .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-bg);
}

.profile-card .card-header i {
  font-size: 20px;
  color: var(--primary);
}

.profile-card .card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.avatar-preview {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 24px rgba(42, 168, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.avatar-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(42, 168, 0, 0.3);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  color: #999;
  font-size: 64px;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 168, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 32px;
  color: white;
}

.avatar-preview:hover .avatar-overlay {
  opacity: 1;
}

.avatar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.avatar-zone {
  width: 100%;
  max-width: 320px;
  padding: 24px;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(42, 168, 0, 0.05), rgba(42, 168, 0, 0.02));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-zone:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(42, 168, 0, 0.1), rgba(42, 168, 0, 0.05));
  transform: translateY(-2px);
}

.avatar-zone.drag-over {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(42, 168, 0, 0.15), rgba(42, 168, 0, 0.08));
  box-shadow: 0 4px 12px rgba(42, 168, 0, 0.15);
}

.avatar-zone i {
  font-size: 28px;
  color: var(--primary);
}

.avatar-zone p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.avatar-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.avatar-hint i {
  font-size: 12px;
  color: var(--primary);
}

.profile-form .field {
  margin-bottom: 20px;
}

.profile-form .field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.profile-form .field label i {
  color: var(--primary);
  font-size: 14px;
}

.profile-form .field input,
.profile-form .field select,
.profile-form .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s;
  font-family: inherit;
}

.profile-form .field textarea {
  resize: vertical;
  min-height: 100px;
}

.profile-form .field input:focus,
.profile-form .field select:focus,
.profile-form .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.1);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.preferences-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.preference-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--light-bg);
  border-radius: 12px;
  transition: all 0.3s;
}

.preference-item:hover {
  background: rgba(15, 98, 254, 0.05);
}

.preference-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

.preference-info i {
  font-size: 20px;
  color: var(--primary);
  margin-top: 2px;
}

.preference-info strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.preference-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.danger-zone {
  border: 2px solid var(--accent);
}

.danger-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.danger-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  padding: 12px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 8px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500 !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  cursor: pointer;
}

.toast-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-message i {
  font-size: 18px;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-message.error {
  background: #ff4757;
}

.button.success {
  background: var(--success);
  color: white;
}

/* ============================================
   OBRAS PAGE STYLES
   ============================================ */

.module-header {
  margin-bottom: 40px;
}

.module-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(15, 98, 254, 0.05), rgba(255, 107, 53, 0.05));
  border-radius: 18px;
  border: 1px solid var(--border);
}

.module-hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.module-hero p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 24px;
}

.module-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.module-controls input[type="search"],
.module-controls select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.module-controls input[type="search"] {
  flex: 1;
  min-width: 200px;
}

.module-controls input[type="search"]:focus,
.module-controls select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.1);
}

.obras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.obra-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s;
  cursor: pointer;
}

.obra-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.obra-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--light-bg);
}

.obra-content {
  padding: 20px;
}

.obra-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.obra-description {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.obra-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.obra-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light-bg);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}

/* ============================================
   PRESUPUESTO PAGE STYLES
   ============================================ */

.presupuesto-section {
  padding: 40px 0;
}

.presupuesto-form-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.presupuesto-form {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.form-step h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-step h3 i {
  color: var(--primary);
}

.form-step-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-step-buttons .button {
  flex: 1;
}

.image-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.image-upload-zone:hover {
  border-color: var(--primary);
  background: rgba(15, 98, 254, 0.02);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.upload-placeholder i {
  font-size: 40px;
  color: var(--primary);
}

.upload-placeholder p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.upload-placeholder span {
  font-size: 12px;
}

.image-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.image-preview-item .remove-image:hover {
  transform: scale(1.1);
}

.presupuesto-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.info-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.info-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   CONTACTO PAGE STYLES
   ============================================ */

.contacto-section {
  padding: 40px 0;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.contact-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card h3 i {
  color: var(--primary);
}

.contact-form .field {
  margin-bottom: 20px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-method i {
  font-size: 24px;
  color: var(--primary);
  margin-top: 2px;
}

.contact-method strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-method p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 16px;
  background: var(--light-bg);
  border-radius: 10px;
}

.faq-item strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   PROVEEDORES PAGE STYLES
   ============================================ */

.proveedores-section {
  padding: 40px 0;
}

.proveedores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.proveedor-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.proveedor-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: var(--primary);
}

.proveedor-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.proveedor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.proveedor-logo i {
  font-size: 32px;
  color: var(--primary);
}

.proveedor-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.proveedor-category {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
  padding: 4px 12px;
  background: var(--light-bg);
  border-radius: 8px;
  font-weight: 600;
}

.proveedor-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--warning);
  margin-bottom: 12px;
}

.proveedor-contact {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.proveedor-contact .button {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

.cta-section {
  margin-top: 60px;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 18px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}

.cta-content h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-content p {
  font-size: 16px;
  margin: 0 0 20px;
  opacity: 0.95;
  line-height: 1.6;
}

.cta-content .button {
  background: white;
  color: var(--primary);
}

.cta-content .button:hover {
  background: var(--light-bg);
}

.cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.benefit-item i {
  color: var(--success);
  font-size: 18px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .presupuesto-form-container,
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
  }

  .cta-benefits {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .module-hero h1 {
    font-size: 28px;
  }

  .profile-header h1 {
    font-size: 28px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .obras-grid,
  .proveedores-grid {
    grid-template-columns: 1fr;
  }

  .form-step-buttons {
    flex-direction: column;
  }

  .danger-actions {
    flex-direction: column;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active,
.modal[style*="display: flex"],
.modal[style*="display:flex"] {
  display: flex;
}

.modal-content {
  background: #ffffff !important;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafa;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
