/*
Theme Name: Contadora Samanta
Theme URI: 
Author: Tu Nombre
Author URI: 
Description: Tema personalizado para estudio contable
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=DM+Sans:wght@300;400;500&family=Raleway:ital,wght@0,100..900;1,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
  --navy: #1B2B4B;
  --navy-light: #243557;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #F8F5EF;
  --cream-dark: #EDE8DE;
  --white: #FFFFFF;
  --text-dark: #1B2B4B;
  --text-mid: #4A5568;
  --text-light: #8A95A3;
  --shadow: 0 4px 30px rgba(27, 43, 75, 0.10);
  --shadow-lg: 0 20px 60px rgba(27, 43, 75, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  font-family: "Raleway", sans-serif;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}

nav.scrolled {
  background: rgba(27, 43, 75, 0.97);
  padding: 14px 60px;
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(201, 168, 76, 0.05) 0%, transparent 40%);
}

.hero-lines {
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  overflow: hidden;
  opacity: 0.06;
}

.hero-lines::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 120%;
  height: 120%;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold) 0px,
    var(--gold) 1px,
    transparent 1px,
    transparent 40px
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px 80px;
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease forwards 0.3s;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-text h1 {
  font-size: clamp(44px, 5vw, 68px);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-text p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.8s; }
.stat-item:nth-child(2) { animation-delay: 0.95s; }
.stat-item:nth-child(3) { animation-delay: 1.1s; }

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.hero-visual {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeLeft 0.9s ease forwards 0.5s;
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
}

.hero-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card-title::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

.service-pill:last-child {
  border-bottom: none;
}

.service-pill-icon {
  width: 32px;
  height: 32px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ─── SECTIONS SHARED ─── */
section {
  padding: 100px 60px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(34px, 4vw, 52px);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 560px;
}

/* ─── SERVICIOS ─── */
#servicios {
  background: var(--white);
}

.servicios-header {
  text-align: center;
  margin-bottom: 64px;
}

.servicios-header .section-label {
  justify-content: center;
}

.servicios-header .section-label::before {
  display: none;
}

.servicios-header .section-subtitle {
  margin: 0 auto;
  text-align: center;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.servicio-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: default;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.servicio-card:hover::before {
  transform: scaleX(1);
}

.servicio-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
}

.servicio-card h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}

.servicio-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

.servicio-num {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 600;
  color: rgba(27, 43, 75, 0.05);
  line-height: 1;
}

/* ─── SOBRE MÍ ─── */
#sobre-mi {
  background: var(--cream);
  overflow: hidden;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sobre-image-wrapper {
  position: relative;
}

.sobre-image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--navy-light);
}

.sobre-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sobre-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}

.sobre-image-placeholder span {
  font-size: 48px;
}

.sobre-deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.6;
}

.sobre-deco-2 {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 80px;
  height: 80px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  opacity: 0.3;
}

.sobre-text .section-title {
  margin-bottom: 24px;
}

.sobre-text p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.sobre-credentials {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-dark);
}

.credential-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── CONTACTO ─── */
#contacto {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#contacto::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contacto-info .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.contacto-info .section-subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}

/* FORM */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s ease;
  outline: none;
  -webkit-appearance: none;
}

.form-group select option {
  background: var(--navy);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.07);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

/* ─── FOOTER ─── */
footer {
  background: #111D33;
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--white);
  font-weight: 500;
}

.footer-logo span {
  color: var(--gold);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  to { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  section { padding: 80px 40px; }
  nav { padding: 20px 40px; }
  nav.scrolled { padding: 14px 40px; }
  .hero-content { padding: 40px 40px 80px; gap: 50px; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 70px 24px; }
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .hero-content { grid-template-columns: 1fr; padding: 40px 24px 60px; gap: 40px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 28px; }
  .posts-section { padding: 80px 25px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-image-wrapper { max-width: 380px; margin: 0 auto; }
  .contacto-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 24px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; padding: 32px 24px; }
}

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(27, 43, 75, 0.97);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.mobile-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.mobile-logo span {
  color: var(--gold);
}

.mobile-icon {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.mobile-icon:hover {
  color: var(--gold-light);
}

.mobile-blog-link {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.3s;
}

.mobile-blog-link:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
  }
  nav#navbar {
    display: none;
  }
}