/*
Theme Name: Rimada
Theme URI: https://rimada.es
Author: Alfonso de la Rimada
Author URI: https://rimada.es
Description: Tema profesional para Rimada · Comunicación y contenido
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: rimada
*/

/* =========================================
   RIMADA THEME - style.css
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --verde: #2d7a1f;
  --verde-claro: #eaf3de;
  --verde-medio: #639922;
  --verde-oscuro: #173404;
  --verde-acc: #97c459;
  --negro: #111111;
  --gris: #f7f6f2;
  --gris-medio: #888888;
  --blanco: #ffffff;
  --borde: #e8f0dc;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--negro);
  background: var(--blanco);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* =========================================
   NAVEGACIÓN
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--verde-oscuro);
  letter-spacing: -0.5px;
  line-height: 1;
}

.nav-logo .tagline {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--verde-medio);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  color: var(--gris-medio);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover { color: var(--verde); }

.nav-cta {
  background: var(--verde);
  color: var(--blanco) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--verde-oscuro) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--negro);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 5%;
  gap: 60px;
}

.hero-tag {
  display: inline-block;
  background: var(--verde-claro);
  color: var(--verde);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--verde-oscuro);
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--verde-medio);
}

.hero-sub {
  font-size: 18px;
  color: #555;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--verde);
  color: var(--blanco);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--verde-oscuro);
  color: var(--blanco);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1.5px solid var(--verde);
  color: var(--verde);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--verde-claro);
  color: var(--verde-oscuro);
}

/* Hero imagen */
.hero-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 520px;
  box-shadow: 0 24px 64px rgba(23, 52, 4, 0.15);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--blanco);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-image-badge .badge-ico {
  width: 44px;
  height: 44px;
  background: var(--verde-claro);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.hero-image-badge strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--verde-oscuro);
}

.hero-image-badge span {
  font-size: 12px;
  color: var(--gris-medio);
}

/* =========================================
   BADGE STRIP
   ========================================= */

.badge-strip {
  background: var(--verde-oscuro);
  padding: 16px 5%;
  display: flex;
  gap: 0;
  align-items: center;
  overflow: hidden;
}

.badge-strip-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  white-space: nowrap;
}

.badge-strip .item {
  color: var(--verde-acc);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.badge-strip .dot {
  color: var(--verde-medio);
  font-size: 18px;
  margin: 0 20px;
}

/* =========================================
   SECCIONES - GENERAL
   ========================================= */

section { padding: 90px 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde-medio);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--verde-oscuro);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: #666;
  max-width: 520px;
  line-height: 1.7;
}

/* =========================================
   SERVICIOS
   ========================================= */

.servicios { background: var(--gris); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.servicio-card {
  background: var(--blanco);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--borde);
  transition: all 0.3s;
}

.servicio-card:hover {
  border-color: var(--verde-acc);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(45, 122, 31, 0.1);
}

.servicio-card.destacado {
  background: var(--verde);
  border-color: var(--verde);
}

.servicio-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.servicio-body {
  padding: 28px 24px;
}

.servicio-ico {
  width: 48px;
  height: 48px;
  background: var(--verde-claro);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.servicio-card.destacado .servicio-ico {
  background: rgba(255,255,255,0.2);
}

.servicio-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--verde-oscuro);
  margin-bottom: 10px;
}

.servicio-card.destacado h3 { color: var(--blanco); }

.servicio-card p {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

.servicio-card.destacado p { color: rgba(255,255,255,0.85); }

.servicio-precio {
  margin-top: 20px;
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--verde);
}

.servicio-card.destacado .servicio-precio { color: var(--verde-acc); }

.servicio-precio span {
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
  font-family: 'DM Sans', sans-serif;
}

.servicio-card.destacado .servicio-precio span {
  color: rgba(255,255,255,0.6);
}

.servicio-btn {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--verde);
  border-bottom: 1px solid var(--verde-acc);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.servicio-card.destacado .servicio-btn {
  color: var(--verde-acc);
  border-color: rgba(151, 196, 89, 0.4);
}

.servicio-btn:hover { letter-spacing: 0.5px; }

/* =========================================
   POR QUÉ RIMADA
   ========================================= */

.por-que .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.razones {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
}

.razon {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.razon-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--verde-claro);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--verde);
}

.razon-text h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--verde-oscuro);
  margin-bottom: 4px;
}

.razon-text p {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

.por-que-visual {
  background: var(--verde-oscuro);
  border-radius: 24px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.por-que-img {
  border-radius: 16px;
  overflow: hidden;
  height: 200px;
  margin-bottom: 32px;
}

.por-que-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}

.stat:last-child { border-bottom: none; }
.stat:first-of-type { padding-top: 0; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--verde-acc);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* =========================================
   PRECIOS
   ========================================= */

.precios { background: var(--gris); }

.precios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.precio-card {
  background: var(--blanco);
  border-radius: 20px;
  padding: 32px 24px;
  border: 1px solid var(--borde);
  position: relative;
  transition: all 0.3s;
}

.precio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45,122,31,0.08);
}

.precio-card.popular {
  border-color: var(--verde);
  border-width: 2px;
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--verde);
  color: var(--blanco);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.precio-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--verde-oscuro);
  margin-bottom: 8px;
}

.precio-num {
  font-family: 'Syne', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--verde);
  margin: 16px 0 4px;
  line-height: 1;
}

.precio-num span {
  font-size: 15px;
  font-weight: 400;
  color: #aaa;
  font-family: 'DM Sans', sans-serif;
}

.precio-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.5;
}

.precio-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.precio-items li {
  font-size: 13px;
  color: #555;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.4;
}

.precio-items li::before {
  content: '✓';
  color: var(--verde);
  font-weight: 700;
  min-width: 14px;
  margin-top: 1px;
}

.precio-cta {
  display: block;
  text-align: center;
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.precio-cta:hover {
  background: var(--verde);
  color: var(--blanco);
}

.precio-card.popular .precio-cta {
  background: var(--verde);
  color: var(--blanco);
}

.precio-card.popular .precio-cta:hover {
  background: var(--verde-oscuro);
}

/* =========================================
   CONTACTO
   ========================================= */

.contacto { background: var(--verde-oscuro); }

.contacto .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contacto .section-title { color: var(--blanco); }
.contacto .section-tag { color: var(--verde-acc); }
.contacto .section-sub { color: rgba(255,255,255,0.65); }

.contacto-datos {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.contacto-dato {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contacto-dato:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contacto-ico {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contacto-dato h4 {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contacto-dato p {
  font-size: 15px;
  color: var(--blanco);
  font-weight: 500;
}

/* Formulario */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacto-form input,
.contacto-form textarea,
.contacto-form select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--blanco);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border 0.2s;
  width: 100%;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: var(--verde-acc);
}

.contacto-form textarea {
  resize: none;
  height: 130px;
}

.contacto-form .submit-btn {
  background: var(--verde-acc);
  color: var(--verde-oscuro);
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.contacto-form .submit-btn:hover {
  background: var(--blanco);
  transform: translateY(-2px);
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: var(--negro);
  padding: 32px 5%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--blanco);
}

.footer-copy {
  font-size: 13px;
  color: #555;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: #555;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--verde-acc); }

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-image { display: none; }

  .por-que .container,
  .contacto .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .por-que-visual { order: -1; }

  .nav-menu { display: none; }
  .nav-toggle { display: block; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--blanco);
    padding: 20px 5%;
    border-bottom: 1px solid var(--borde);
    gap: 16px;
  }

  .nav-menu.open a { font-size: 16px; }
}

@media (max-width: 600px) {
  .precios-grid,
  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .badge-strip-inner { gap: 24px; }
  .hero h1 { letter-spacing: -1px; }
}
