/* ========================================
   VIVER DE MICRO - STYLESHEET
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #ce908c;
  --secondary-color: #e0a5a2;
  --accent-color: #f4c2c2;
  --bg-dark: #0a0a0a;
  --bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --text-light: #ffffff;
  --text-muted: #cccccc;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body & Base Styles */
body {
  background: var(--bg-gradient);
  font-family: 'Poppins', sans-serif;
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(206, 144, 140, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(206, 144, 140, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(206, 144, 140, 0.06) 0%, transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes backgroundShift {
  0%, 100% { transform: translateX(0px) translateY(0px); }
  33% { transform: translateX(-30px) translateY(-20px); }
  66% { transform: translateX(20px) translateY(30px); }
}

/* ========================================
   FLOATING PARTICLES
   ======================================== */

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); opacity: 0.6; }
  50% { transform: translateY(-20px); opacity: 1; }
}

/* ========================================
   MARQUEE HEADER
   ======================================== */

.marquee {
  width: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(206, 144, 140, 0.3);
  position: relative;
}

.marquee::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 25s linear infinite;
  font-weight: 600;
  padding: 12px 0;
  font-size: 16px;
  letter-spacing: 0.5px;
}

@keyframes scroll-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   MAIN CONTAINER
   ======================================== */

.container {
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  gap: 40px;
  position: relative;
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    gap: 80px;
  }
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.content {
  max-width: 450px;
  text-align: left;
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-50px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

.logo-title {
  width: 100%;
  max-width: 350px;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 20px rgba(206, 144, 140, 0.3));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.info-text {
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.description {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 500;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-left: 2px solid var(--primary-color);
  padding-left: 20px;
  transition: all 0.3s ease;
  animation: slideInRight 1s ease-out;
}

.info-item:hover {
  transform: translateX(10px);
  border-left-color: var(--accent-color);
}

@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(50px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

.info-item:nth-child(2) {
  animation-delay: 0.2s;
}

.info-item img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(83%) sepia(18%)
    saturate(703%) hue-rotate(315deg) brightness(90%) contrast(86%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ========================================
   FORM SECTION
   ======================================== */

.form-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--primary-color);
  padding: 40px 30px;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 
    0 8px 32px rgba(206, 144, 140, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: slideInRight 1s ease-out 0.5s both;
}

.form-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--primary-color) 90deg,
    transparent 180deg,
    var(--primary-color) 270deg,
    transparent 360deg
  );
  animation: rotate 6s linear infinite;
  opacity: 0.1;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.form-box > * {
  position: relative;
  z-index: 1;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input,
button {
  border-radius: 30px;
  padding: 16px 24px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  color: var(--text-light);
  backdrop-filter: blur(5px);
  position: relative;
}

input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 
    0 0 0 4px rgba(206, 144, 140, 0.2),
    0 8px 25px rgba(206, 144, 140, 0.3);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

/* ========================================
   PHONE INPUT WITH COUNTRY SELECTOR
   ======================================== */

/* Ensure dropdown appears above other elements */
.phone-input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.phone-input-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 
    0 0 0 4px rgba(206, 144, 140, 0.2),
    0 8px 25px rgba(206, 144, 140, 0.3);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.country-selector {
  display: flex;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  min-width: 80px;
  justify-content: center;
}

.country-flag {
  width: 20px;
  height: 15px;
  margin-right: 8px;
  border-radius: 2px;
}

.country-code {
  color: var(--text-light);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.phone-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  padding: 16px 20px 16px 12px !important;
  color: var(--text-light);
  font-size: 16px;
  box-shadow: none !important;
  transform: none !important;
}

.phone-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  padding-left: 4px;
}

.phone-input:focus {
  outline: none;
  box-shadow: none !important;
  transform: none !important;
  border: none !important;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 5px;
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.country-dropdown.show {
  display: block;
}

.country-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.country-option:hover {
  background-color: rgba(206, 144, 140, 0.2);
}

.country-option .country-flag {
  margin-right: 12px;
}

.country-option .country-name {
  flex: 1;
  color: var(--text-light);
  font-size: 14px;
}

.country-option .country-code {
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 8px;
}

/* Custom scrollbar for dropdown */
.country-dropdown::-webkit-scrollbar {
  width: 6px;
}

.country-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.country-dropdown::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  color: #000;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(206, 144, 140, 0.4);
}

button:active {
  transform: translateY(-1px);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.success-animation {
  animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .description {
    font-size: 18px;
    text-align: center;
  }
  
  .content {
    text-align: center;
  }
  
  .info-item {
    justify-content: center;
    border-left: none;
    border-bottom: 2px solid var(--primary-color);
    padding-left: 0;
    padding-bottom: 10px;
  }
  
  .marquee-content {
    font-size: 14px;
    padding: 10px 0;
  }
  
  .container {
    padding: 30px 15px;
    gap: 30px;
  }
  
  .form-box {
    padding: 30px 20px;
  }

  .country-selector {
    padding: 0 12px;
    min-width: 70px;
  }

  .country-code {
    font-size: 13px;
  }

  .phone-input {
    padding: 16px 16px 16px 8px !important;
  }

  .phone-input::placeholder {
    font-size: 14px;
  }

  /* Mobile dropdown adjustments */
  .country-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: 280px;
    max-height: 60vh;
    border-radius: 20px;
    z-index: 9999;
    margin-top: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    background: rgba(20, 20, 20, 0.98);
  }

  .country-dropdown.show {
    display: block;
    animation: modalFadeIn 0.3s ease-out;
  }

  .country-option {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .country-option:last-child {
    border-bottom: none;
  }

  .country-option .country-name {
    font-size: 16px;
  }

  .country-option .country-code {
    font-size: 14px;
  }

  .country-flag {
    width: 24px !important;
    height: 18px !important;
  }

  /* Modal overlay for mobile */
  .country-dropdown::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    transform: translate(-50%, -50%);
    margin-left: 50%;
    margin-top: 50%;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}