/*
 Theme Name: Astra Child Ruccia (Final)
 Template: astra
 Version: 1.0.0
 Description: Tema hijo Astra listo para Elementor. Paleta vino, botón flotante WhatsApp, shortcodes Gestoría y Contacto.
 Author: Dra. Eliana Antonela Ruccia
*/

/* -------- Paleta institucional vino -------- */
:root{
  --brand:#a1003c;
  --brand-dark:#7a002b;
  --brand-contrast:#ffffff;
  --ink:#0f172a;
  --bg:#f5f6f8;
  --border:#e5e7eb;
}

body{ color:var(--ink); background:var(--bg); }
a{ color:var(--brand); }
a:hover{ color:var(--brand-dark); }

/* Header / menú */
.main-header-bar,
.ast-mobile-header-wrap,
.ast-desktop-header-content{
  background:var(--brand) !important;
}
.main-header-menu > li > a,
.ast-header-break-point .main-header-menu .menu-link,
.main-header-bar .ast-search-menu-icon{
  color:var(--brand-contrast) !important;
}
.main-header-menu > li:hover > a,
.main-header-menu > li.current-menu-item > a{
  color:#fff !important;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.45);
}

/* Footer */
.site-primary-footer-wrap,
.site-footer{
  background:var(--brand) !important;
  color:var(--brand-contrast);
}
.site-footer a{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:2px;
}

/* Botones */
.wp-block-button__link,
.button,
.ast-button,
input[type="submit"],
button[type="submit"],
.button.button-primary{
  background:var(--brand) !important;
  border-color:var(--brand) !important;
  color:var(--brand-contrast) !important;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}
.wp-block-button__link:hover,
.button:hover,
.ast-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.button.button-primary:hover{
  background:var(--brand-dark) !important;
  border-color:var(--brand-dark) !important;
}

/* Hero reutilizable */
.ruccia-hero{
  position:relative;
  min-height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:88px 20px;
  color:#fff;
  background:linear-gradient(180deg,var(--brand),var(--brand-dark));
}
.ruccia-hero h1{
  font-size:clamp(34px,5.5vw,56px);
  margin:0 0 10px;
  font-weight:800;
  letter-spacing:.2px;
  color:#fff;
}
.ruccia-hero p.lead{
  font-size:clamp(16px,2.2vw,22px);
  opacity:.94;
  color:#fff;
}
.ruccia-cta{
  margin-top:28px;
  display:inline-block;
  padding:12px 22px;
  border-radius:999px;
  background:#fff;
  color:#111;
  text-decoration:none;
  font-weight:700;
  border:1px solid rgba(0,0,0,.06);
}
.ruccia-cta:hover{ transform:translateY(-1px); }

/* Contenedor / títulos */
.container{ max-width:1100px; margin:0 auto; }
.page .entry-title,
.section-title{
  text-align:center;
  color:var(--ink);
  margin-bottom:16px;
  font-weight:700;
}

/* Formulario contacto shortcode */
.ruccia-cf{
  max-width:680px;
  margin:0 auto;
}
.ruccia-cf label{
  display:block;
  font-weight:600;
  margin:0 0 .25rem;
  color:var(--ink);
}
.ruccia-cf input[type=text],
.ruccia-cf input[type=email],
.ruccia-cf textarea{
  width:100%;
  padding:.75rem;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  font-size:16px;
  line-height:1.4;
}
.ruccia-cf--ok{
  background:#e6ffed;
  border:1px solid #34a853;
  color:#0f5132;
  border-radius:8px;
  padding:12px 16px;
  text-align:center;
  font-weight:600;
  max-width:680px;
  margin:0 auto 1rem;
}
.ruccia-cf--error{
  background:#fff4f4;
  border:1px solid #cc0000;
  color:#7a002b;
  border-radius:8px;
  padding:12px 16px;
  max-width:680px;
  margin:0 auto 1rem;
}
.ruccia-cf--error ul{ margin:0; padding-left:1.2rem; }

/* Centrar botón Enviar */
.ruccia-cf p:last-child{
  display:flex;
  justify-content:center;
}
.ruccia-cf button[type="submit"]{
  display:inline-block;
  margin:0 auto;
}

/* Gestoría wrapper */
.ruccia-gestoria-wrapper,
.rgaf-wrapper{
  max-width:1100px;
  margin:16px auto;
  padding-left:20px;
  padding-right:20px;
  overflow-x:auto;
}
.rgaf-inner{ width:100%; }

/* tablas CSV */
.prices-table,
.rgaf-prices-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.prices-table thead th,
.rgaf-prices-table thead th{
  background:#fff;
  color:#111827;
  border:1px solid var(--border);
  padding:.75rem .7rem;
  font-weight:700;
}
.prices-table tbody tr,
.rgaf-prices-table tbody tr{ background:#fff; }
.prices-table td,
.rgaf-prices-table td{
  padding:.75rem .7rem;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.prices-table tbody tr td:first-child,
.rgaf-prices-table tbody tr td:first-child{
  border-left:1px solid var(--border);
  font-weight:700;
}
.prices-table tbody tr td:last-child,
.rgaf-prices-table tbody tr td:last-child{
  border-right:1px solid var(--border);
}

/* Botón WhatsApp flotante */
.ruccia-whatsapp{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#25D366;
  color:#fff;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
}
.ruccia-whatsapp svg{
  width:28px;
  height:28px;
  display:block;
  fill:#fff;
}
