/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  color: white;
  background: var(--primary);
  box-shadow: var(--shadow-md);
  transition: filter 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(10px);
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.8);
}

.btn-secondary:active {
  transform: scale(0.95);
}

.btn-presupuesto {
  padding: var(--spacing-sm) 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: filter 0.2s;
}

.btn-presupuesto:hover {
  filter: brightness(1.1);
}

.btn-presupuesto:active {
  transform: scale(0.95);
}

/* Badges */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: var(--radius-full);
  padding: 0.375rem var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--icon-bg);
  color: var(--primary);
}

.badge-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
}

/* Cards */
.portfolio-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  backdrop-filter: blur(10px);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.portfolio-card:hover {
  background: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.portfolio-color {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.6);
}

.portfolio-text {
  min-width: 0;
}

.portfolio-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-city {
  font-size: 0.75rem;
  color: var(--text-light);
}

.garantia-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  padding: var(--spacing-lg);
  backdrop-filter: blur(10px);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.garantia-card:hover {
  transform: translateY(-0.25rem);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 18px 50px -24px rgba(0,0,0,0.35);
}

.garantia-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--icon-bg);
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.garantia-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.garantia-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

.garantia-desc-card {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12,42,58,0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-3xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  animation: slideIn 0.2s ease-out;
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #9ca3af;
  font-size: 1.25rem;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.modal h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.modal p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #4b5563;
}

/* Form */
.modal-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-group input {
  border-radius: var(--radius-md);
  border: 1px solid #d1d5db;
  padding: var(--spacing-sm) 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #6b7280;
}

.form-submit {
  width: 100%;
  border-radius: var(--radius-full);
  padding: var(--spacing-sm);
  font-weight: 600;
  color: white;
  background: var(--primary);
  box-shadow: 0 8px 16px -4px rgba(0,0,0,0.28);
  transition: filter 0.2s;
}

.form-submit:hover {
  filter: brightness(1.1);
}

.form-submit:active {
  transform: scale(0.95);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  left: var(--spacing-md);
  z-index: 60;
  max-width: 20rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.8);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  animation: slideUp 0.3s ease-out;
  display: none;
}

.cookie-banner.open {
  display: block;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.cookie-text a {
  font-weight: 500;
  text-decoration: underline;
  color: var(--primary);
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

.btn-cookie-reject {
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: transparent;
  transition: background 0.2s;
}

.btn-cookie-reject:hover {
  background: #f1f5f9;
}

.btn-cookie-accept {
  border-radius: var(--radius-full);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: var(--primary);
  transition: filter 0.2s;
}

.btn-cookie-accept:hover {
  filter: brightness(1.1);
}

/* Attention Popup */
.promo-popup {
  position: fixed;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  z-index: 60;
  width: calc(100% - 2 * var(--spacing-md));
  max-width: 21rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.92);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  animation: slideUp 0.35s ease-out;
  display: none;
}

.promo-popup.open {
  display: block;
}

.promo-popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: #9ca3af;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.promo-popup-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.promo-popup-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  padding-right: 1.5rem;
}

.promo-popup-text {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.promo-popup-cta {
  width: 100%;
  border-radius: var(--radius-full);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: var(--primary);
  box-shadow: var(--shadow-md);
  transition: filter 0.2s;
}

.promo-popup-cta:hover {
  filter: brightness(1.1);
}

.promo-popup-cta:active {
  transform: scale(0.97);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  right: var(--spacing-md);
  bottom: var(--spacing-md);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  color: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
}

.whatsapp-btn:active {
  transform: scale(0.95);
}

.whatsapp-btn svg {
  position: relative;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  color: white;
}

.whatsapp-ping {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0,0,0.2,1) 3;
}

/* Stars */
.stars {
  display: flex;
  color: #fbbf24;
}

.stars svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Browser Frame */
.browser-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: white;
  box-shadow: var(--shadow-xl);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: var(--spacing-md);
}

.browser-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.browser-dot.red { background: #FF5F57; }
.browser-dot.yellow { background: #FEBC2E; }
.browser-dot.green { background: #28C840; }

.browser-url {
  flex: 1;
  border-radius: var(--radius-sm);
  background: white;
  padding: 0.25rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
  margin-left: 0.75rem;
}

.demo-button {
  display: block;
  width: 100%;
  text-align: left;
  transition: transform 0.3s ease-out, rotate 0.3s ease-out;
  cursor: pointer;
}

.demo-button:hover {
  transform: translateY(-0.25rem);
  rotate: 0.5deg;
}

.demo-button:active {
  transform: scale(0.99);
}

.demo-note {
  margin-top: var(--spacing-sm);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
}
