/* ================= VARIABLES ================= */
:root {
  --primary: #2596BE;
  --text: #1E2532;
  --paragraph: #828BA2;
  --vr-primary: #20749A;
  --secondary: #FF9900;
  --neutral-white: #ffffff;
  --bg: #ffffff;
  --hero-bg: #EFFAFC;
  --hero-alt: #f5f5f5;
  --card-bg: #F7F9FC;
  --radius: 8px;
  --footer-bg: #0B0E13;

  /* Layout */
  --max-width: 1440px;

  /* Padding fluido */
  --padding-x: clamp(1.5rem, 5vw, 6rem);
  --section-padding-y: clamp(3rem, 8vw, 6rem);

  /* Tipografía fluida */
  --h1: clamp(28px, 5vw, 49px);
  --h2: clamp(28px, 5vw, 49px);
  --h3: clamp(22px, 4vw, 32px);
  --h4: clamp(18px, 4vw, 24px);
  --p: clamp(14px, 1.5vw, 16px);
}

html {
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(37, 150, 190, 0.45);
  border-radius: 999px;
}

html::-webkit-scrollbar-button {
  display: none;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 150, 190, 0.45) transparent;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BODY ================= */
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-top: 80px;
}

/* ================= GRID CONTAINER ================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--padding-x);
  padding-right: var(--padding-x);

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}

.container--flex {
    display: block;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
}

/* ================= SECTIONS ================= */
section {
  padding: var(--section-padding-y) 0;
}

/* ================= TYPO ================= */
h1 {
  font-size: var(--h1);
  line-height: 1.2;
}

h2 {
  font-size: var(--h2);
}

p {
  font-size: var(--p);
}

/* ================= BUTTON ================= */
.btn {
  padding: clamp(0.5rem, 1vw, 0.8rem)
           clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
   position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
  user-select: none;
  touch-action: manipulation;
  text-decoration: none;
  display: inline-block;
}

.btn-primary .shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  will-change: transform;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.btn-primary .edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to left,
    #B35800 0%,
    #E67A00 8%,
    #E67A00 92%,
    #B35800 100%
  );
}

.btn-primary .front {
  display: block;
  position: relative;
  padding: 12px 27px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #FF9900;
  will-change: transform;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  filter: brightness(110%);
}

 .btn-primary:hover .front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

 .btn-primary:active .front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

 .btn-primary:hover .shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

 .btn-primary:active .shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

 .btn-primary:focus:not(:focus-visible) {
  outline: none;
}

 .btn-primary:focus-visible {
  outline: 3px solid #FF9900;
  outline-offset: 4px;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg);
  border-bottom:none;
  z-index: 1000;
}

.navbar__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--padding-x);

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}

/* LOGO */
.navbar__logo {
  grid-column: 1 / 4;
}

.navbar__logo a img {
  font-weight: bold;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  text-decoration: none;
  color: var(--primary);
  width: 150px;
}

/* LINKS */
.navbar__links {
  grid-column: 6 / 13;
  display: flex;
  justify-content: flex-end;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  align-items: center;
}

.navbar__links a {
  text-decoration: none;
  color: var(--text);
  font-size: var(--p);
}

/* BURGER BUTTON - BASE (oculto en desktop) */
.navbar__burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
}

.navbar__burger svg {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar__burger .burger-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.navbar__burger .close-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

.navbar__burger.active .burger-icon {
  opacity: 0;
  transform: rotate(90deg);
}

.navbar__burger.active .close-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* ================= NAVBAR - LINK ACTIVO ================= */
.navbar__links a.active {
    color: var(--primary) !important;
    font-weight: 600;
    position: relative;
}

.navbar__links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.navbar__mobile a.active {
    color:#15607a !important;
    font-weight: 600;
}

/* ================= MENU MOBILE ACORDEON ================= */
.navbar__mobile {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1), 
              padding 0.5s ease;
  padding: 0 10px; 
  background: var(--primary);
}

.navbar__mobile.active {
  max-height: 500px; 
  padding: 10px 10px; 
}

.navbar__mobile a {
  display: block;
  padding: 0.8rem 0;
  text-decoration: none;
  color: var(--neutral-white);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar__mobile.active a {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary-mobile {
  background: var(--vr-primary);
  border: none;
  color: var(--neutral-white) !important;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.btn-primary-mobile:hover {
  background: var(--neutral-white);
    color: var(--primary) !important;
}

.navbar__mobile a:nth-child(1) { transition-delay: 0.05s; }
.navbar__mobile a:nth-child(2) { transition-delay: 0.10s; }
.navbar__mobile a:nth-child(3) { transition-delay: 0.15s; }
.navbar__mobile a:nth-child(4) { transition-delay: 0.20s; }
.navbar__mobile a:nth-child(5) { transition-delay: 0.25s; }
.navbar__mobile a:nth-child(6) { transition-delay: 0.30s; }

/* ================= ANIMACIONES SCROLL ================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, filter 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal-blur.revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.scroll-reveal-fast {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 0.4s ease-out, filter 0.4s ease-out;
}

.scroll-reveal-fast.revealed {
  opacity: 1;
  filter: blur(0);
}

/* ================= RESPONSIVE NAVBAR ================= */
@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar__logo {
    grid-column: 1 / 8;
  }

  .navbar__burger {
    grid-column: 11 / 13;
    justify-self: end;
  }
}

/* ================= FOOTER ================= */
.footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    padding: clamp(2rem, 8vw, 5rem) 0 clamp(1rem, 4vw, 2rem) 0;
    margin-top: auto;
    position: relative;
}

.footer__grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
}

.footer__col--branding { 
    grid-column: 1 / 6; 
}

.footer__col--links { 
    grid-column: 7 / 9; 
}

.footer__col--newsletter { 
    grid-column: 9 / 13; 
}

.footer__logo {
    width: min(180px, 40vw);
    margin-bottom: clamp(1rem, 3vw, 2rem);
    height: auto;
}

.footer__description {
    color: #A0A5B1;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.6;
    max-width: 400px;
}

.footer__title {
    color: #565B67;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    letter-spacing: 1px;
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    text-transform: uppercase;
    font-weight: 600;
}

.footer__list {
    list-style: none;
    padding: 0;
}

.footer__list li { 
    margin-bottom: clamp(0.6rem, 1.5vw, 0.8rem); 
}

.footer__list a {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer__list a:hover { 
    color: var(--primary);
    transform: translateX(5px);
}

.footer__mail {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    display: inline-block;
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    word-break: break-all;
    transition: color 0.3s ease;
}

.footer__mail:hover {
    color: var(--primary);
}

.footer__text {
    color: #A0A5B1;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
}

.footer__input-group {
    background: #ffffff;
    border-radius: 12px;
    padding: 5px 5px 5px clamp(10px, 3vw, 15px);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    transition: box-shadow 0.3s ease;
}

.footer__input-group:focus-within {
    box-shadow: 0 0 0 2px rgba(37, 150, 190, 0.3);
}

.footer__input-group input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    padding: clamp(10px, 2vw, 12px) 0;
    min-width: 0;
}

.footer__input-group input::placeholder {
    color: #9CA3AF;
    font-size: clamp(0.75rem, 1.8vw, 0.8rem);
}

.footer__btn-arrow {
    background-color: #2596BE;
    border: none;
    color: white;
    width: clamp(36px, 8vw, 40px);
    height: clamp(36px, 8vw, 40px);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer__btn-arrow:hover {
    background-color: #1a6f8f;
    transform: scale(1.05);
}

.footer__btn-arrow:active {
    transform: scale(0.95);
}

.footer__bottom {
    grid-column: 1 / -1;
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.footer__social p {
    font-size: clamp(0.7rem, 1.5vw, 0.75rem);
    color: #565B67;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: clamp(32px, 6vw, 36px);
    height: clamp(32px, 6vw, 36px);
    background: #2D3748;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #2596BE;
    transform: translateY(-3px);
}

.footer__copyright {
    color: #565B67;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
}

@media (max-width: 1024px) and (min-width: 769px) {
    .footer__col--branding { 
        grid-column: 1 / 7; 
    }
    .footer__col--links { 
        grid-column: 7 / 10; 
    }
    .footer__col--newsletter { 
        grid-column: 10 / 13; 
    }
    
    .footer__description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer__col--branding,
    .footer__col--links,
    .footer__col--newsletter {
        grid-column: 1 / 13;
    }
    
    .footer__col--branding {
        text-align: center;
    }
    
    .footer__logo {
        margin: 0 auto 1.5rem auto;
    }
    
    .footer__description {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    .footer__col--links {
        text-align: center;
    }
    
    .footer__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1.5rem;
    }
    
    .footer__list li {
        margin-bottom: 0;
    }
    
    .footer__list a:hover {
        transform: translateY(-2px);
    }
    
    .footer__col--newsletter {
        text-align: center;
    }
    
    .footer__input-group {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .footer__bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .footer__social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer__list {
        gap: 0.6rem 1rem;
    }
    
    .footer__list a {
        font-size: 0.85rem;
    }
    
    .footer__input-group {
        max-width: 100%;
    }
    
    .social-icons {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer__list a,
    .footer__btn-arrow,
    .social-icons a {
        transition: none;
    }
    
    .footer__list a:hover {
        transform: none;
    }
    
    .social-icons a:hover {
        transform: none;
    }
}

@media (min-width: 1920px) {
    .footer__description {
        max-width: 500px;
    }
    
    .footer__input-group {
        max-width: 400px;
    }
}

/* ==========================================================================
   MODAL STYLES - VERSION OPTIMIZADA
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 14, 19, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.25rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 18px;
  max-width: 570px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 1.6rem 1.6rem 1.85rem;
  box-shadow: 0 25px 50px -12px rgba(11, 14, 19, 0.35),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  scrollbar-width: thin;
  scrollbar-color: rgba(160, 165, 180, 0.25) transparent;
}

.modal-container::-webkit-scrollbar {
  width: 10px;
}

.modal-container::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 12px;
}

.modal-container::-webkit-scrollbar-thumb {
  background-color: rgba(160, 165, 180, 0.25);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.25s ease;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(160, 165, 180, 0.4);
}

.modal-container::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-form {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  font-size: 1.2rem;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.modal-close-form:hover {
  background: #0B0E13;
  color: #ffffff;
  border-color: #0B0E13;
  transform: rotate(90deg);
}

.modal-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #F1F5F9;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(37, 150, 190, 0.08);
  border: 1px solid rgba(37, 150, 190, 0.15);
  color: var(--primary, #2596BE);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.24rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary, #2596BE);
}

.modal-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0B0E13;
  letter-spacing: -0.02em;
  margin-bottom: 0.28rem;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary, #2596BE);
  margin-bottom: 0.28rem;
}

.modal-description-form {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.55;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 1.05rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.95rem 0.65rem 2.45rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  background-color: #FAFAFC;
  background-repeat: no-repeat;
  background-position: 0.8rem center;
  background-size: 15px 15px;
  color: #0B0E13;
  font-family: 'Roboto', sans-serif;
  font-size: 0.87rem;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#user_name {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
}

#user_company {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M9 22v-4h6v4'%3E%3C/path%3E%3C/svg%3E");
}

#user_email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

#user_phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

#service_option {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E");
}

#project_details {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
  background-position: 0.8rem 0.8rem;
  resize: vertical;
  min-height: 80px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94A3B8;
  font-size: 0.8rem;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #CBD5E1;
  background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary, #2596BE);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.1);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23828BA2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
}

.modal-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.modal-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary, #2596BE);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.05rem;
  font-family: 'Roboto', sans-serif;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(37, 150, 190, 0.2);
  width: 100%;
}

.modal-submit-btn:hover {
  background: var(--vr-primary, #20749A);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 150, 190, 0.3);
}

.modal-submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.modal-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 150, 190, 0.2);
}

.btn-arrow {
  transition: transform 0.2s ease;
  width: 15px;
  height: 15px;
}

/* CSS actualizado con la solución */
.calendly-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.05rem;
  border: 1.5px solid var(--primary, #2596BE);
  border-radius: 10px;
  color: var(--primary, #2596BE);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
  background: transparent;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  font-family: 'Roboto', sans-serif;
}

.calendly-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calendly-icon svg {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.calendly-text {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.2;
}

.calendly-link:hover {
  color: #ffffff;
  background: var(--primary, #2596BE);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 150, 190, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
  .modal-container {
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 16px;
    max-height: 90vh;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .modal-actions-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-description-form {
    font-size: 0.75rem;
  }

  .modal-submit-btn,
  .calendly-link {
    font-size: 0.75rem;
    padding: 0.65rem 0.9rem;
  }
}


@media (max-width: 400px) {
  .modal-container {
    padding: 1rem 1rem 1.25rem;
    border-radius: 14px;
    max-height: 92vh;
  }

  .modal-header h2 {
    font-size: 1.1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem 0.5rem 2rem;
    background-size: 14px 14px;
    background-position: 0.7rem center;
  }

  #project_details {
    background-position: 0.7rem 0.7rem;
    min-height: 65px;
  }

  .modal-submit-btn,
  .calendly-link {
    font-size: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
  }
}

.form-group[style*="display: none;"] {
  display: none !important;
}

label:has(+ input[required])::after {
  content: " *";
  color: #EF4444;
  font-weight: 600;
}

/* ==========================================================================
   UI TOAST NOTIFICATIONS
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.ui-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(11, 14, 19, 0.15),
              0 8px 10px -6px rgba(11, 14, 19, 0.1),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ui-toast.hide {
  transform: translateY(-10px) scale(0.95);
  opacity: 0;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-top: 2px;
}

.ui-toast-success {
  border-left: 4px solid #10B981;
}

.ui-toast-success .toast-icon {
  background: #ECFDF5;
  color: #10B981;
}

.ui-toast-error {
  border-left: 4px solid #EF4444;
}

.ui-toast-error .toast-icon {
  background: #FEF2F2;
  color: #EF4444;
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0B0E13;
  line-height: 1.25;
}

.toast-message {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: 4px;
  transition: color 0.15s ease;
}

.toast-close:hover {
  color: #0B0E13;
}

/* ================= PRIVACY BANNER FLOATING ================= */

.privacy-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(11, 14, 19, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  z-index: 9998;
  max-width: 700px;
  width: calc(100% - 40px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-banner.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.privacy-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.privacy-banner__text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  flex: 1;
}

.privacy-banner__text svg {
  flex-shrink: 0;
  color: #4CAF50;
}

.privacy-banner__text a {
  color: #FF9900;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.privacy-banner__text a:hover {
  color: #FFB84D;
  text-decoration: underline;
}

.privacy-banner__btn {
  flex-shrink: 0;
  background: #FF9900;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.privacy-banner__btn:hover {
  background: #E68A00;
  transform: scale(1.02);
}

.privacy-banner__btn:active {
  transform: scale(0.96);
}

@media (max-width: 768px) {
  .privacy-banner {
    bottom: 10px;
    padding: 0.85rem 1rem;
    width: calc(100% - 20px);
    border-radius: 12px;
  }
  
  .privacy-banner__content {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  
  .privacy-banner__text {
    font-size: 0.75rem;
    align-items: flex-start;
  }
  
  .privacy-banner__text svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
  }
  
  .privacy-banner__btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .privacy-banner {
    bottom: 8px;
    padding: 0.75rem 0.75rem;
    border-radius: 10px;
  }
  
  .privacy-banner__text {
    font-size: 0.7rem;
  }
  
  .privacy-banner__btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ================= TOAST NOTIFICATION - NEWSLETTER ================= */

.newsletter-toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 14, 19, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.newsletter-toast-overlay.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-toast {
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem 3rem 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.92) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.newsletter-toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2596BE, #FF9900);
  opacity: 0.6;
}

.newsletter-toast-overlay.active .newsletter-toast {
  transform: scale(1) translateY(0);
}

.newsletter-toast__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  position: relative;
  transition: all 0.3s ease;
}

.newsletter-toast__icon.success {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  color: #10B981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.newsletter-toast__icon.error {
  background: linear-gradient(135deg, #FEF2F2, #FECACA);
  color: #EF4444;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.newsletter-toast__icon.info {
  background: linear-gradient(135deg, #EFFAFC, #D6EEF4);
  color: #2596BE;
  box-shadow: 0 8px 24px rgba(37, 150, 190, 0.2);
}

.newsletter-toast__icon.loading {
  background: linear-gradient(135deg, #EFFAFC, #D6EEF4);
  color: #2596BE;
  box-shadow: 0 8px 24px rgba(37, 150, 190, 0.15);
}

.newsletter-toast__icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.newsletter-toast__icon.loading svg {
  animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.newsletter-toast__icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.1;
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.08); opacity: 0.05; }
  100% { transform: scale(1); opacity: 0.15; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.newsletter-toast__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0B0E13;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.newsletter-toast__message {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-toast__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-toast__btn {
  background: var(--primary, #2596BE);
  color: #ffffff;
  border: none;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.3px;
  min-width: 120px;
}

.newsletter-toast__btn:hover {
  background: var(--vr-primary, #20749A);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 150, 190, 0.3);
}

.newsletter-toast__btn:active {
  transform: translateY(0) scale(0.98);
}

.newsletter-toast__btn--secondary {
  background: transparent;
  color: var(--primary, #2596BE);
  border: 2px solid var(--primary, #2596BE);
  padding: 0.7rem 2.2rem;
}

.newsletter-toast__btn--secondary:hover {
  background: var(--primary, #2596BE);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 150, 190, 0.2);
}

.footer__newsletter-message {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  min-height: 1.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer__newsletter-message.success {
  color: #10B981;
}

.footer__newsletter-message.error {
  color: #EF4444;
}

.footer__newsletter-message.loading {
  color: var(--primary);
}

.footer__newsletter-message.info {
  color: #2596BE;
}

.footer__input-group.subscribed {
  background: rgba(16, 185, 129, 0.08);
  border: 2px solid #10B981;
  border-radius: 12px;
}

.footer__input-group.error-state {
  background: rgba(239, 68, 68, 0.08);
  border: 2px solid #EF4444;
  border-radius: 12px;
}

.footer__input-group #newsletter-email.error {
  border-color: #EF4444;
}

.footer__input-group #newsletter-email.success {
  border-color: #10B981;
}

@media (max-width: 480px) {
  .newsletter-toast {
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 20px;
    max-width: 95%;
  }
  
  .newsletter-toast__icon {
    width: 60px;
    height: 60px;
  }
  
  .newsletter-toast__icon svg {
    width: 28px;
    height: 28px;
  }
  
  .newsletter-toast__title {
    font-size: 1.15rem;
  }
  
  .newsletter-toast__message {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }
  
  .newsletter-toast__btn {
    padding: 0.65rem 2rem;
    font-size: 0.85rem;
    min-width: 100px;
  }
  
  .newsletter-toast__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .newsletter-toast__btn--secondary {
    padding: 0.6rem 1.8rem;
  }
}

@media (max-width: 380px) {
  .newsletter-toast {
    padding: 2rem 1.25rem 1.5rem;
  }
  
  .newsletter-toast__icon {
    width: 52px;
    height: 52px;
  }
  
  .newsletter-toast__icon svg {
    width: 24px;
    height: 24px;
  }
  
  .newsletter-toast__title {
    font-size: 1rem;
  }
  
  .newsletter-toast__message {
    font-size: 0.8rem;
  }
}