/*
Theme Name:  Ramos Rentables
Theme URI:   https://ramos-rentables.com
Author:      RicsonDev
Author URI:  https://ramos-rentables.com
Description: Landing page maestra para captura de leads. Diseñada para adaptarse a cualquier nicho u oferta mediante el Panel de Personalización de WordPress.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ramos-rentables
Tags:        landing-page, lead-capture, single-page, one-page, custom-colors
*/

/* ──────────────────────────────────────────
   CSS Variables – se sobreescriben con el
   Personalizador de WordPress cuando el
   usuario elige un color primario diferente.
   ────────────────────────────────────────── */
:root {
  --color-primary: #ff4d8d;
  --color-primary-light: rgba(255, 77, 141, 0.12);
  --color-primary-glow: rgba(255, 77, 141, 0.30);
  --color-bg: #fff5f8;
  --color-white: #ffffff;
  --color-dark: #2d3436;
  --color-muted: #636e72;
  --color-light-muted: #b2bec3;
  --color-gold: #ffd700;
  --color-wa: #25D366;
  --gradient-floral: linear-gradient(135deg, var(--color-primary) 0%, #ff8fab 50%, #ffb3c6 100%);
}

/* ──────────────────────────────────────────
   Base
   ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--color-primary);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ──────────────────────────────────────────
   Floral Gradient Utility
   ────────────────────────────────────────── */
.floral-gradient {
  background: var(--gradient-floral);
}

/* ──────────────────────────────────────────
   Pure CSS Animations
   (replaces framer-motion from React)
   ────────────────────────────────────────── */

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Scale */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Float Flowers */
@keyframes floatFlower {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.15;
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
    opacity: 0.20;
  }
}

/* Slow Spin */
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Pulse Scale */
@keyframes pulseScale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Bounce Slow */
@keyframes bounceSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Draw underline path (SVG stroke) */
@keyframes drawPath {
  from {
    stroke-dashoffset: 300;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* Spinner (submit button loading) */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ──────────────────────────────────────────
   Animation helper classes
   ────────────────────────────────────────── */
.anim-fade-up {
  animation: fadeInUp 0.8s ease both;
}

.anim-fade-left {
  animation: fadeInLeft 0.8s ease both;
}

.anim-fade-right {
  animation: fadeInRight 0.8s ease both;
}

.anim-fade-scale {
  animation: fadeInScale 0.8s ease both;
}

.anim-float-flower {
  animation: floatFlower 4s ease-in-out infinite;
}

.anim-spin-slow {
  animation: spinSlow 8s linear infinite;
}

.anim-pulse-scale {
  animation: pulseScale 2s ease-in-out infinite;
}

.anim-bounce-slow {
  animation: bounceSlow 3s ease-in-out infinite;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-1s {
  animation-delay: 1s;
}

.delay-15s {
  animation-delay: 1.5s;
}

.delay-2s {
  animation-delay: 2s;
}

/* ──────────────────────────────────────────
   SVG Animated Underline
   ────────────────────────────────────────── */
.animated-underline path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawPath 1s ease forwards 0.5s;
}

/* ──────────────────────────────────────────
   Gallery cards hover
   ────────────────────────────────────────── */
.gallery-card {
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.10);
}

.gallery-img {
  transition: transform 0.7s ease;
}

/* ──────────────────────────────────────────
   Loading spinner (submit button)
   ────────────────────────────────────────── */
.drm-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 4px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* ──────────────────────────────────────────
   Scroll-triggered reveal (via IntersectionObserver)
   ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────────
   Print styles for PDF-like export view
   ────────────────────────────────────────── */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  th,
  td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 10pt;
  }

  th {
    background: #ff4d8d;
    color: #fff;
  }
}