:root {
  --purple: #602e9e;
  --orange: #d68e45;
  --light-purple: #f8f5fc;
  --light-orange: #fef8f3;
  --text-dark: #2d1b4e;
  --text-muted: #5d4a7a;
  --gradient-main: linear-gradient(135deg, #602e9e, #d68e45);
  --gradient-reverse: linear-gradient(135deg, #d68e45, #602e9e);
  --whatsapp-green: #25d366;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  background: #faf9fc;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Primary CTA Buttons */
.btn-cta {
  background: var(--gradient-main);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 6px 18px rgba(96, 46, 158, 0.25);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
  width: 300px;
  height: 300px;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(96, 46, 158, 0.35);
  color: #fff;
  background: var(--gradient-reverse);
}

.btn-cta i {
  margin-right: 0.5rem;
}

/* HERO SECTION */
.contact-hero {
  background: linear-gradient(135deg, #f8f5fc 0%, #fef8f3 50%, #f8f5fc 100%);
  color: var(--text-dark);
  padding: 100px 20px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(96, 46, 158, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(214, 142, 69, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contact-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}

/* CONTACT OPTIONS SECTION */
.contact-options {
  padding: 60px 20px;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 0;
  align-items: stretch;
}

.contact-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(96, 46, 158, 0.1);
  border: 2px solid rgba(96, 46, 158, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.3s ease;
  z-index: 2;
}

.contact-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(96, 46, 158, 0.03) 0%, rgba(214, 142, 69, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(96, 46, 158, 0.2);
  border-color: var(--orange);
}

.contact-card:hover::before { transform: scaleX(1); }
.contact-card:hover::after { opacity: 1; }

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(96, 46, 158, 0.25);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.contact-icon.coffee { background: var(--gradient-main); }
.contact-icon.whatsapp { background: var(--whatsapp-green); }
.contact-icon.email { background: var(--gradient-reverse); }

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(10deg);
}

.contact-card h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.contact-card .subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.contact-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.contact-btn {
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  z-index: 1;
}

.contact-btn.coffee { background: var(--gradient-main); color: white; }
.contact-btn.whatsapp { background: var(--whatsapp-green); color: white; }
.contact-btn.email { background: var(--gradient-reverse); color: white; }

.contact-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.contact-btn:hover::before { width: 300px; height: 300px; }

.contact-btn:hover {
  transform: translateY(-2px) scale(1.05);
  color: white !important;
  box-shadow: 0 8px 25px rgba(96, 46, 158, 0.3);
}

.contact-btn.coffee:hover { background: var(--gradient-reverse); }
.contact-btn.email:hover { background: var(--gradient-main); }

.contact-btn i { margin-right: 0.5rem; font-size: 1rem; }

/* MAIN CONTENT SECTION */
.main-content {
  padding: 60px 20px;
  background: linear-gradient(180deg, #faf9fc 0%, #f8f5fc 100%);
}

.content-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 3rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* CONTACT FORM SECTION */
.contact-form-section h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: var(--text-dark);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.contact-form-section .subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

.form-group label .required { color: var(--purple); }

.form-control {
  border: 2px solid rgba(96, 46, 158, 0.15);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
  background: white;
  font-family: inherit;
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(96, 46, 158, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: var(--gradient-main);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before { width: 300px; height: 300px; }

.btn-submit:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(96, 46, 158, 0.3);
  background: var(--gradient-reverse);
}

/* SIDEBAR */
.contact-sidebar {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(96, 46, 158, 0.1);
  border: 2px solid rgba(96, 46, 158, 0.1);
  position: sticky;
  top: 100px;
  height: fit-content;
  transition: all 0.4s ease;
}

.contact-sidebar:hover {
  box-shadow: 0 15px 40px rgba(96, 46, 158, 0.15);
  border-color: var(--orange);
}

.contact-info h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
  line-height: 1.3;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  border: 2px solid rgba(96, 46, 158, 0.08);
}

.contact-item:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(96, 46, 158, 0.12);
  transform: translateX(5px);
  border-color: var(--orange);
}

.contact-item-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(96, 46, 158, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover .contact-item-icon {
  transform: scale(1.1) rotate(10deg);
}

.contact-item-icon.phone { background: var(--gradient-main); }
.contact-item-icon.email { background: var(--gradient-reverse); }
.contact-item-icon.whatsapp { background: var(--whatsapp-green); }

.contact-item-content h4 {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.contact-item-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  word-break: break-all;
  line-height: 1.4;
}

/* CTA BOX */
.cta-box {
  background: var(--gradient-main);
  color: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(96, 46, 158, 0.25);
  transition: all 0.4s ease;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.cta-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(96, 46, 158, 0.35);
}

.cta-box h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.cta-box p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.btn-cta-white {
  background: white;
  color: var(--purple);
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 50%;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.btn-cta-white::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--gradient-main);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn-cta-white:hover::before { width: 300px; height: 300px; }

.btn-cta-white:hover {
  transform: translateY(-2px) scale(1.05);
  color: white !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-cta-white i { margin-right: 0.5rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .contact-hero { padding: 120px 20px 60px; }
  .contact-hero h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .contact-cards { grid-template-columns: 1fr; gap: 1.25rem; }
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .contact-sidebar { margin-top: 2rem; position: static; }
}

@media (max-width: 991px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}