/* --- Tu CSS existente --- */
/* Paleta */
:root{
  --dorado: #AF8B45;
  --dorado-2: #D9CBA3;
  --blanco: #FFFFFF;
  --negro: #222222;
  --grises: #F6F6F6;
  --max-width: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--blanco);
  color: var(--negro);
  line-height:1.6;
}

/* Wrapper */
.wrap{max-width:var(--max-width);margin:0 auto;padding:0 18px}

/* Header */
.site-header{
  background: var(--blanco);
  border-bottom: 4px solid var(--dorado);
  position:sticky;
  top:0;
  z-index:100;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}
.logo{height:64px;width:auto;border-radius:8px}

/* Nueva clase para logo grande */
.logo-large{
  height:96px;
  transition: height 0.3s ease;
}

/* Brand */
.brand h1{margin:0;font-size:1.6rem;color:var(--dorado);font-family:"Playfair Display", serif}
.subtitle{margin:4px 0 0;font-size:0.95rem;color:#666}

/* Nav */
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:18px}
.nav a{text-decoration:none;color:var(--negro);font-weight:500;transition:color 0.3s}
.nav a:hover{color:var(--dorado)}

/* Hero */
.hero{
  background: linear-gradient(180deg, rgba(175,139,69,0.12), rgba(175,139,69,0.06));
  padding:64px 0;
  text-align:center;
}
.hero-inner{padding:12px}
.hero h2{margin:8px 0;font-size:2rem;color:var(--dorado);font-family:"Playfair Display", serif}
.lead{max-width:900px;margin:12px auto;color:#333;font-size:1rem}
.btn-cta{
  display:inline-block;
  margin-top:20px;
  padding:12px 28px;
  background:var(--dorado);
  color:var(--blanco);
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  transition:background 0.3s, transform 0.2s;
}
.btn-cta:hover{background:var(--dorado-2);transform:scale(1.05)}

/* Nueva clase para imagen hero */
.hero-image{
  margin-top:20px;
  max-width:100%;
  height:auto;
  border-radius:12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Section */
.section {padding:46px 0}
.section-title{font-size:1.6rem;color:var(--dorado);margin-bottom:18px;text-align:center;font-family:"Playfair Display", serif}

/* Cards */
.card{
  background: var(--grises);
  border-radius:10px;
  padding:18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  margin:12px auto;
  max-width:880px;
  transition:transform 0.2s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 20px rgba(0,0,0,0.1);
}
.destaque{border-left:6px solid var(--dorado);padding-left:14px}

/* Imagenes en servicios */
.service-image{
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Lists */
.bullet{list-style:disc;margin-left:1.25rem;color:#444}

/* About small text */
.small{color:#555;font-size:0.95rem;margin-top:8px}

/* Imagen en sección sobre mí */
.about-image{
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Footer */
.site-footer{
  background:linear-gradient(180deg, var(--blanco), #f9f9f9);
  border-top:2px solid #eee;
  padding:22px 0;
}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center}
.footer-left p, .footer-right p{margin:4px 0;color:#444}
.footer-left a, .footer-right a{color:var(--dorado);text-decoration:none}
.footer-left a:hover{text-decoration:underline}

/* Responsive */
@media (max-width:899px){
  /* Mostrar la marca en móvil (oculta antes) */
  .brand {
    display: block;
    flex: 1;
  }
  .brand h1 {
    font-size: 1.3rem;
  }
  .brand .subtitle {
    font-size: 0.8rem;
    color: #555;
  }

  .nav ul{
    gap:12px;
    font-size:0.9rem;
  }

  .logo {
    height: 72px;
  }

  .logo-large {
    height: 72px;
  }

  .wrap {
    padding: 0 14px;
  }

  /* Cards flex vertical en móvil */
  .card {
    max-width: 100%;
    padding: 14px;
  }

  /* Ajustar imagen servicios en móvil */
  .service-image {
    max-height: 180px;
  }

  /* Hero imagen ajustada */
  .hero-image {
    margin-top: 18px;
    max-height: 280px;
  }

  /* About image centrada y ajustada */
  .about-image {
    max-width: 200px;
    margin-bottom: 18px;
  }
}
/* === BLOQUES DE COLOR Y SOMBRAS SUAVES === */
body {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f6 25%, #f4ede7 50%, #ffffff 100%);
  background-attachment: fixed;
}

/* --- Sección de Servicios en 3 columnas --- */
#servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #fff8f3 0%, #f9f5f1 100%);
  text-align: center;
  position: relative;
}

#servicios .section-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2rem;
  color: #3d2b1f;
  font-family: 'Playfair Display', serif;
  margin-bottom: 2rem;
}

/* Tarjetas con borde y sombra suave */
.service {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* --- Sección “Acerca de mí” refinada --- */
#acerca-de-mi {
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 80%, #fff 100%);
  padding: 3rem 1rem;
  text-align: center;
}

#acerca-de-mi img.about-image {
  max-width: 180px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#acerca-de-mi p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1rem;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Sección de contacto con alto contraste --- */
.site-footer {
  background: linear-gradient(to right, #3d2b1f, #6b4f38);
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.site-footer a {
  color: #f1d5a7;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* Barra decorativa inferior */
.site-footer::after {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(to right, #b9936c, #8b6b52);
  margin-top: 2rem;
  border-radius: 8px;
}
/* === 1. Servicios: texto a la izquierda y lectura parcial con hover === */
.service {
  text-align: left;
  position: relative;
  overflow: hidden;
  max-height: 260px; /* visible hasta cierto punto */
  transition: max-height 0.6s ease;
  border-left: 4px solid #b99a85; /* línea elegante a la izquierda */
  padding-left: 1.2rem;
}

.service:hover {
  max-height: 1000px; /* se despliega al pasar el mouse */
}

.service p {
  text-align: left;
  color: #333;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Mantiene efecto visual uniforme para todos */
.service:nth-child(even) {
  border-left: 4px solid #bfa588;
}

/* --- Ajuste del título dentro de servicios --- */
#servicios .section-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #3e2b23;
  font-family: 'Playfair Display', serif;
}

/* === 2. Acerca de mí: foto rectangular con finos detalles === */
#acerca-de-mi img.about-image {
  max-width: 280px;
  border-radius: 8px; /* forma rectangular suave */
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border: 3px solid rgba(175, 139, 69, 0.4); /* borde dorado sutil */
}

/* === 3. Footer (Contacto): fondo dorado y texto oscuro legible === */
.site-footer {
  background: linear-gradient(to right, #AF8B45, #c6a765);
  color: #222;
  padding: 3rem 1rem;
  text-align: center;
}

.site-footer a {
  color: #2b2b2b;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #000;
}

.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
}

/* Barra decorativa dorada más clara */
.site-footer::after {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(to right, #f2d083, #d4b76d);
  margin-top: 2rem;
  border-radius: 8px;
}

/* === 4. Hero: imagen más pequeña === */
.hero .hero-image {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 2rem auto;
}

/* === 5. Encabezado: texto y menú más grande === */
.site-header {
  font-size: 1.2em;
}

.site-header .brand h1 {
  font-size: 2.4rem;
  color: #3e2b23;
}

.nav ul li a {
  font-size: 1.15rem;
  font-weight: 600;
  color: #3e2b23;
}
/* === FUNCIONALIDAD EXTRA: desplegar servicios al hacer clic o tocar (para móviles) === */

/* Añadimos una clase .open que activa el despliegue */
.service.open {
  max-height: 1000px;
  transition: max-height 0.6s ease;
}

/* Cursor cambia a “clickeable” */
.service {
  cursor: pointer;
}

/* Pequeño indicador visual (línea lateral) al desplegar */
.service.open {
  border-left-color: #AF8B45;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
/* === Botón flotante de contacto === */
.btn-flotante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #AF8B45; /* dorado institucional */
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  z-index: 9999;
}

.btn-flotante:hover {
  background-color: #946d33; /* dorado más oscuro */
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}

/* En pantallas pequeñas, ajustamos tamaño */
@media (max-width: 768px) {
  .btn-flotante {
    bottom: 20px;
    right: 20px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}
/* -------------------------
   Detalles finos añadidos
   ------------------------- */

/* Tipografía y micro-ajustes */
h1, h2, h3, h4 {
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 0;
}

/* Textos más suaves */
p {
  color: #333333;
}

/* Reveal (animación de entrada) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}

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

/* Mejor interacción en tarjetas de servicio */
.service.card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform, box-shadow;
}
.service.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  border-color: var(--color-dorado);
}

/* Botón CTA principal (coincide con .btn-cta del HTML) */
.btn-cta {
  display: inline-block;
  background: var(--color-dorado);
  color: var(--color-blanco);
  padding: 0.9rem 1.4rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(175,139,69,0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-cta:hover { transform: translateY(-3px); }

/* Botón flotante modernizado */
.btn-flotante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--color-dorado);
  color: var(--color-blanco);
  padding: 0.95rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  z-index: 2000;
}
.btn-flotante:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

/* Encabezado al hacer scroll (clase .scrolled) */
header.scrolled {
  background-color: rgba(255,255,255,0.96);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto subrayado dorado en enlaces */
a {
  position: relative;
  text-decoration: none;
}
a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--color-dorado);
  transition: width 0.28s ease;
}
a:hover::after { width: 100%; }

/* Navegación móvil (drawer simple) */
@media (max-width: 900px) {
  .nav {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    background-color: var(--color-blanco);
    position: absolute;
    top: 70px;
    right: 16px;
    width: 220px;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  .nav.active { display: flex; }
  header .wrap.header-inner { gap: 0.6rem; }
  .logo-large { max-width: 90px; height: auto; }
}

/* Ajustes menores para imágenes (mejor rendimiento visual) */
.service-image, .hero-image, .about-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Asegurar contraste en footer */
footer { color: var(--color-blanco); }
footer a { color: var(--color-dorado); }