/*
Theme Name: Cabañas El Desván Child
Theme URI: https://www.cabanaseldesvan.cl
Description: Tema hijo de OceanWP para el blog de Cabañas El Desván, con estilos que replican la landing page principal.
Author: Cabañas El Desván
Template: oceanwp
Version: 1.0.0
Text Domain: cabanas-child
*/

/* ==========================================================================
   Paleta de marca (misma que index.html)
   Azul:  #1147b2   Azul hover: #0d3580
   Tan:   #c6ad8c / #c8b190
   Café oscuro footer: #2a2520 -> #1a1510
   Crema fondo: #f6efe4
   Texto oscuro: #1a1510
   ========================================================================== */

:root {
  --cd-blue: #1147b2;
  --cd-blue-dark: #0d3580;
  --cd-tan: #c8b190;
  --cd-tan-dark: #b89e7a;
  --cd-cream: #f6efe4;
  --cd-dark: #1a1510;
}

body {
  background: var(--cd-cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cd-dark);
}

h1, h2, h3, h4,
.site-title, .entry-title, .page-title {
  font-family: Georgia, 'Zilla Slab', serif !important;
  font-weight: 700 !important;
  color: var(--cd-dark);
}

a {
  color: var(--cd-blue);
}
a:hover {
  color: var(--cd-blue-dark);
}

/* ---------- Header (OceanWP) ---------- */
#header,
.site-header {
  background: var(--cd-cream) !important;
  border-bottom: 2px solid #000000;
}

/* Header compacto: altura fija y logo contenido, en vez de ocupar toda la pantalla */
#header .site-header-row,
#header #logo,
#header .logo-wrap {
  min-height: 0 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
#header #logo,
#header .site-logo,
#header .custom-logo-link {
  display: flex !important;
  align-items: center !important;
}

/* Logo: tamaño fijo en vez del tamaño original de la imagen subida */
.custom-logo {
  max-width: 120px !important;
  width: 120px !important;
  height: auto !important;
}
.site-logo #site-logo img,
#logo a img,
#logo img,
.custom-logo-link img {
  max-width: 120px !important;
  width: 120px !important;
  height: auto !important;
}

#site-navigation-wrap li > a,
.header-tags a {
  color: var(--cd-dark) !important;
  font-weight: 600;
}
#site-navigation-wrap li > a:hover {
  color: var(--cd-blue) !important;
}
/* Botón "Reservar" si lo agregas como item de menú con la clase cd-btn-reservar */
.cd-btn-reservar a,
a.cd-btn-reservar {
  background: var(--cd-blue) !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.cd-btn-reservar a:hover,
a.cd-btn-reservar:hover {
  background: var(--cd-blue-dark) !important;
}

/* ---------- Botones y CTAs generales ---------- */
.btn, button, input[type="submit"],
.widget .cd-whatsapp-btn {
  border-radius: 8px !important;
}

/* ---------- Sidebar / widgets ---------- */
#sidebar .widget,
.sidebar .widget {
  background: #fffcf6;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.08);
}
#sidebar .widget-title,
.sidebar .widget-title {
  color: var(--cd-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 14px;
}

/* CTA de WhatsApp en el sidebar (ver class-cd-whatsapp-widget.php) */
.cd-whatsapp-widget {
  text-align: center;
}
.cd-whatsapp-widget p {
  font-size: 14px;
  margin-bottom: 14px;
}
.cd-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366 !important;
  color: #ffffff !important;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}
.cd-whatsapp-btn:hover {
  background: #1DA851 !important;
  color: #ffffff !important;
}

/* ---------- Breadcrumbs ---------- */
.ocean-breadcrumbs,
.breadcrumbs {
  background: transparent;
  font-size: 13px;
  color: #4a4640;
  padding: 16px 0;
}
.ocean-breadcrumbs a {
  color: var(--cd-blue);
}

/* ---------- Entradas de blog ---------- */
.entry-content h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--cd-blue);
}
.entry-content h3 {
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 12px;
}
.entry-content p {
  line-height: 1.7;
  font-size: 16px;
}
.entry-content a {
  text-decoration: underline;
}

/* Bloque de CTA final de cada post */
.cd-post-cta {
  background: var(--cd-tan);
  border: 2px solid #000000;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  margin-top: 40px;
}
.cd-post-cta p {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.cd-post-cta a {
  display: inline-block;
  background: var(--cd-blue);
  color: #ffffff !important;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
}
.cd-post-cta a:hover {
  background: var(--cd-blue-dark);
}

/* FAQ */
.cd-faq-section {
  margin-top: 40px;
}
.cd-faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 16px 0;
}
.cd-faq-item h3 {
  margin: 0 0 8px 0;
  font-size: 17px;
}
.cd-faq-item p {
  margin: 0;
  color: #4a4640;
}

/* ---------- Footer (OceanWP footer widget areas) ---------- */
#footer,
.site-footer {
  background: linear-gradient(180deg, #2a2520, #1a1510) !important;
  color: var(--cd-cream) !important;
}
#footer .widget-title,
.site-footer .widget-title {
  color: #c6ad8c !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}
#footer a,
.site-footer a {
  color: var(--cd-cream) !important;
}
#footer a:hover,
.site-footer a:hover {
  color: #c6ad8c !important;
}
#footer-bottom,
.footer-bottom {
  background: #b89e7a !important;
  color: #ffffff !important;
}
