/*
Theme Name:   Aston Rentals Child
Theme URI:    https://astonrentals.com
Description:  Tema hijo de Astra para Aston Rentals
Author:       Aston Rentals
Template:     astra
Version:      1.0.1
Text Domain:  aston-child
*/

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
  --background:        #f8f6f2;
  --foreground:        #1e1a14;
  --card:              #ffffff;
  --primary:           #1a3a5c;
  --primary-foreground:#f8f6f2;
  --secondary:         #eeebe4;
  --secondary-foreground: #2a2318;
  --muted:             #e8e4dc;
  --muted-foreground:  #6b6259;
  --accent:            #2a8fa8;
  --accent-foreground: #ffffff;
  --border:            #ddd8ce;
  --input:             #ddd8ce;
  --radius:            0.625rem;
  --font-sans:         'Inter', system-ui, sans-serif;
  --font-serif:        'Playfair Display', Georgia, serif;
}

/* ============================================
   RESET & APLASTAMOS ASTRA COMPLETAMENTE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  background-color: var(--background) !important;
  color: var(--foreground) !important;
  font-family: var(--font-sans) !important;
  -webkit-font-smoothing: antialiased;
}

/* Todos los wrappers de Astra al mínimo */
#page, #content, .site, .site-content,
.ast-container, .ast-flex-1,
.entry-content, .post-content,
.ast-article-post, article.post, .hentry,
#primary, #main, main.site-main,
.wp-block-post-content, .ast-post-format-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}

/* Esconder header/footer/breadcrumbs de Astra */
#masthead, .site-header, .main-header-bar,
.ast-main-header-wrap, #colophon, .site-footer,
.footer-widget-area, .ast-above-header-wrap,
.ast-below-header-wrap, .ast-breadcrumbs-wrapper,
.ast-comment-area, #comments, .secondary-header,
.ast-primary-sticky-header {
  display: none !important;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p    { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ============================================
   ESTRUCTURA BASE
   ============================================ */
.lb-main {
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

.lb-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.lb-section { padding: 5rem 0; }

/* ============================================
   BOTONES
   ============================================ */
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.lb-btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground) !important;
  padding: 0.875rem 1.75rem;
}
.lb-btn-primary:hover {
  background-color: #0f2840;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,58,92,0.3);
  color: var(--primary-foreground) !important;
}

.lb-btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--foreground) !important;
  padding: 0.875rem 1.75rem;
}
.lb-btn-outline:hover {
  background: var(--secondary);
  color: var(--foreground) !important;
}

/* ============================================
   TIPOGRAFÍAS
   ============================================ */
.lb-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
  margin: 0 0 0.875rem 0;
}

.lb-section-subtitle {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  max-width: 600px;
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .lb-section   { padding: 3.5rem 0; }
  .lb-container { padding: 0 1.25rem; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.lb-fade-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}
.lb-fade-left {
  opacity: 0; transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.lb-fade-right {
  opacity: 0; transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0.2s;
}
.lb-fade-up.lb-in-view,
.lb-fade-left.lb-in-view,
.lb-fade-right.lb-in-view { opacity: 1; transform: none; }

.lb-animate .lb-fade-up,
.lb-animate .lb-fade-left,
.lb-animate .lb-fade-right {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.lb-animate.lb-in-view .lb-fade-up,
.lb-animate.lb-in-view .lb-fade-left,
.lb-animate.lb-in-view .lb-fade-right { opacity: 1; transform: none; }
