/* --- VARIABLES & RESET --- */
:root {
  --color-primary: #0f172a;
  --color-secondary: #c5a059;
  --color-bg-light: #f8f9fa;
  --color-text-main: #334155;
  --color-text-light: #94a3b8;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
  --spacing-section: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--color-primary);
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul { list-style: none; }

/* --- UTILIDADES --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }

.highlight {
  color: var(--color-secondary);
  font-style: italic;
}

.btn {
  display: inline-block;
  background-color: var(--color-secondary);
  color: #fff;
  padding: 16px 32px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 1px solid var(--color-secondary);
  cursor: pointer;
}

.btn:hover {
  background-color: #fff;
  color: var(--color-secondary);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.btn-outline-dark {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  margin-top: 20px;
}

.btn-outline-dark:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.w-100 { width: 100%; }

/* --- HEADER --- */
header {
  padding: 20px 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 10;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}

.logo span { color: var(--color-secondary); }

header .btn-outline { display: none; padding: 10px 20px; font-size: 0.8rem; }

@media (min-width: 900px) {
  header .btn-outline { display: block; }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  background-color: var(--color-primary);
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
  z-index: 2;
}

.relative-content { position: relative; z-index: 3; width: 100%; }

.hero-content { max-width: 800px; text-align: center; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-content { text-align: left; margin: 0; }
  .hero p { margin-left: 0; }
}

/* --- PAIN POINTS (Tarjetas) --- */
.pain-points { padding: var(--spacing-section) 0; background: #fff; }

.section-title { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.card {
  padding: 30px;
  border-left: 3px solid var(--color-secondary);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.card:hover { transform: translateY(-5px); }

.card h3 { font-size: 1.4rem; margin-bottom: 15px; }

.card p { font-size: 0.95rem; color: #64748b; }

/* --- RUPTURA DE PATRÓN --- */
.pattern-break {
  background-color: var(--color-primary);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.pattern-break h2 { color: white; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }

.pattern-break p { font-size: 1.2rem; color: #cbd5e1; }

/* --- SOLUCIÓN --- */
.solution { padding: var(--spacing-section) 0; background-color: var(--color-bg-light); }

.solution-flex { display: flex; flex-direction: column-reverse; gap: 50px; }

.solution-intro { margin-bottom: 20px; font-size: 1.1rem; }

.feature-list li { margin-bottom: 25px; display: flex; align-items: flex-start; }

.feature-icon {
  min-width: 24px; height: 24px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  margin-right: 15px; margin-top: 5px;
  position: relative; flex-shrink: 0;
}

.feature-icon::after {
  content: "✓"; color: white; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 12px;
}

.solution-img-container {
  flex: 1; display: flex; justify-content: center; align-items: center;
}

.img-shadow {
  width: 100%; border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .solution-flex { flex-direction: row; align-items: center; }
  .solution-text { flex: 1.2; }
  .text-left-desktop { text-align: left !important; }
}

/* --- SOBRE MÍ --- */
.about-me { padding: var(--spacing-section) 0; background-color: #fff; }

.about-flex { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }

.about-img { flex: 1; min-width: 300px; }

.about-img img {
  width: 100%; border-radius: 8px;
  filter: grayscale(20%);
}

.about-text { flex: 1.5; min-width: 300px; }

.about-text h2 { font-size: 2.5rem; margin-bottom: 25px; }

.about-text p { margin-bottom: 20px; font-size: 1.1rem; }

/* --- TESTIMONIOS --- */
.testimonials { padding: var(--spacing-section) 0; background-color: #f8f9fa; }

.case-study {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.case-content { padding: 10px 40px ; flex: 1; display: flex; flex-direction: column; justify-content: center; }

.quote-icon { font-size: 4rem; color: var(--color-secondary); opacity: 0.3; font-family: serif; margin-bottom: -20px; }

.client-info { display: flex; align-items: center; margin-bottom: 30px; border-top: 1px solid #f1f5f9; padding-top: 20px; }

.client-avatar {
  width: 65px; height: 65px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--color-secondary);
  margin-right: 15px; flex-shrink: 0;
}

.client-avatar img { width: 100%; height: 100%; object-fit: cover; }

.case-metrics { display: flex; gap: 20px; }

.metric { border-left: 2px solid var(--color-secondary); padding-left: 10px; }

.metric span { display: block; font-weight: 700; color: var(--color-primary); }

.case-visual { flex: 1; background-color: #f1f5f9; padding: 40px; display: flex; align-items: center; justify-content: center; }

.browser-mockup { width: 100%; max-width: 700px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.browser-header { background: #e2e8f0; padding: 10px 15px; display: flex; align-items: center; gap: 6px; }

.dot { width: 10px; height: 10px; border-radius: 50%; }

.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }

.url-bar { background: #fff; flex: 1; margin-left: 10px; border-radius: 4px; font-size: 0.7rem; padding: 2px 8px; color: #64748b; }

.browser-body { position: relative; height: 300px; overflow: hidden; }

.browser-screenshot { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: 0.5s; }

.browser-body:hover .browser-screenshot { transform: scale(1.05); }

.overlay-link {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.4); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: 0.3s;
}

.browser-body:hover .overlay-link { opacity: 1; }

@media (min-width: 900px) { .case-study { flex-direction: row; } }

/* --- EXCLUSIVIDAD --- */
.exclusivity {
  background-color: var(--color-primary); color: #fff;
  padding: 80px 0; border-top: 4px solid var(--color-secondary);
  text-align: center;
}

.lock-icon { font-size: 3rem; margin-bottom: 20px; display: block; }

.exclusivity p { max-width: 700px; margin: 0 auto 30px auto; color: #cbd5e1; }

/* --- CONTACTO --- */
.contact { padding: var(--spacing-section) 0; }

.contact-header { text-align: center; margin-bottom: 40px; }

.form-box {
  max-width: 600px; margin: 0 auto; background: #fff;
  padding: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 1px solid #e2e8f0;
}

.form-group { margin-bottom: 20px; }

.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }

.form-control { width: 100%; padding: 12px; border: 1px solid #cbd5e1; font-family: var(--font-sans); }

.form-note { font-size: 0.8rem; color: #94a3b8; margin-top: 15px; text-align: center; }

/* --- FOOTER --- */
footer { background: #0f172a; color: #64748b; padding: 40px 0; text-align: center; border-top: 1px solid #1e293b; }

/* --- ANIMACIONES --- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.cta-spacer { margin-top: 40px; }