/* ============================================
   SEGURÍSIMA — Shared Stylesheet
   Brand: Varela Round + Zen Dots
   Colors: #9fc643 (green) #44a8b0 (aqua) #000 #fff
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Varela+Round&family=Zen+Dots&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #9fc643;
  --aqua: #44a8b0;
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #e8e8e8;
  --gray-text: #555555;
  --gray-muted: #999999;
  --font-body: 'Varela Round', sans-serif;
  --font-display: 'Zen Dots', sans-serif;
  --max-width: 1160px;
  --section-pad: 96px 40px;
  --radius: 4px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-pad);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--gray {
  background: var(--gray-light);
}

/* ---- Color Stripe ---- */
.stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--aqua) 100%);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 1px;
}

.nav__logo span {
  color: var(--aqua);
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--green);
}

.nav__cta {
  background: var(--green);
  color: var(--black) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.72rem !important;
  letter-spacing: 1.5px !important;
  transition: background var(--transition) !important;
}

.nav__cta:hover {
  background: #8db53a !important;
  color: var(--black) !important;
}

/* ============================================
   DIAGONAL DECORATORS (brand graphic element)
   ============================================ */
.deco {
  position: absolute;
  display: flex;
  gap: 10px;
}

.deco__line {
  width: 3px;
  border-radius: 2px;
  transform: rotate(45deg);
}

.deco--top-right {
  top: 24px;
  right: 40px;
}

.deco--bottom-left {
  bottom: 24px;
  left: 40px;
}

/* ============================================
   HERO — HOME
   ============================================ */
.hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.28;
  width: 100%;
  height: 100%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,0.92) 45%, rgba(0,0,0,0.4) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px;
  max-width: 680px;
}

.hero__label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--green);
}

.hero__title {
  color: var(--white);
  margin-bottom: 24px;
}

.hero__title span {
  color: var(--aqua);
}

.hero__text {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}

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

.hero__deco-lines {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 48px;
  gap: 16px;
  opacity: 0.35;
  z-index: 1;
}

.hero__deco-lines span {
  display: block;
  width: 4px;
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--green);
  color: var(--black);
}

.btn--primary:hover {
  background: #8db53a;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn--outline-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0,0,0,0.3);
}

.btn--outline-dark:hover {
  border-color: var(--black);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  margin-bottom: 56px;
}

.section-header--center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--aqua);
}

.section-header--center .section-label {
  justify-content: center;
}

.section-header--center .section-label::before {
  display: none;
}

.section-title {
  margin-bottom: 16px;
}

.section-title--light {
  color: var(--white);
}

.section-text {
  color: var(--gray-text);
  font-size: 1rem;
  max-width: 560px;
}

.section-text--light {
  color: rgba(255,255,255,0.6);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.service-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card__body {
  padding: 28px;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #eef6df;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.service-card__icon--aqua {
  background: #e3f4f5;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ============================================
   WHY SEGURISIMA
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.why-item {
  display: flex;
  gap: 20px;
}

.why-item__marker {
  flex-shrink: 0;
  width: 3px;
  height: 48px;
  border-radius: 2px;
  margin-top: 4px;
}

.why-item__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.why-item__text {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--black);
  padding: 48px 40px;
}

.stats-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--green);
  display: block;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: var(--gray-mid);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.process-step__num--green {
  background: var(--green);
  color: var(--black);
}

.process-step__num--aqua {
  background: var(--aqua);
  color: var(--white);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.process-step__text {
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(159,198,67,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--green);
}

.contact-info__label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.contact-info__value {
  color: var(--white);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
}

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-select option {
  background: #1a1a1a;
  color: var(--white);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   BLOG LISTING
   ============================================ */
.blog-hero {
  background: var(--black);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.blog-card:hover {
  border-color: var(--aqua);
  transform: translateY(-4px);
}

.blog-card__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.blog-card__body {
  padding: 24px;
}

.blog-card__lang {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.blog-card__lang--es {
  background: #eef6df;
  color: #3d6010;
}

.blog-card__lang--en {
  background: #e3f4f5;
  color: #1a5f65;
}

.blog-card__cat {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 8px;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--black);
}

.blog-card__meta {
  font-size: 0.78rem;
  color: var(--gray-muted);
  display: flex;
  gap: 12px;
}

/* ============================================
   BLOG POST PAGE
   ============================================ */
.post-hero {
  background: var(--black);
  padding: 72px 40px 56px;
  position: relative;
  overflow: hidden;
}

.post-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.post-hero__cat {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-hero__cat::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
}

.post-hero__title {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.post-hero__meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  gap: 20px;
}

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 40px;
}

.post-body h2 {
  font-size: 1.4rem;
  margin: 48px 0 16px;
}

.post-body h3 {
  font-size: 1.1rem;
  margin: 32px 0 12px;
}

.post-body p {
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.post-body li {
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.post-body strong {
  color: var(--black);
}

.post-featured-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 40px;
}

.post-cta {
  background: var(--gray-light);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin: 40px 0;
}

.post-cta__text {
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 16px;
}

/* ============================================
   AD SLOTS (Adsense)
   ============================================ */
.ad-slot {
  background: var(--gray-light);
  border: 1px dashed var(--gray-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ad-slot--banner {
  width: 100%;
  height: 90px;
  margin: 32px 0;
}

.ad-slot--rectangle {
  width: 300px;
  height: 250px;
}

/* ============================================
   BLOG LAYOUT WITH SIDEBAR
   ============================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 40px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-widget {
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-mid);
}

.sidebar-cta {
  background: var(--black);
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.sidebar-cta__title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.sidebar-cta__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 40px 32px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__logo span {
  color: var(--aqua);
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer__heading {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--green);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

.footer__email {
  color: var(--aqua);
  transition: color var(--transition);
}

.footer__email:hover {
  color: var(--green);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: var(--black);
  padding: 96px 40px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero__label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-hero__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--aqua);
}

.page-hero__title {
  color: var(--white);
  max-width: 640px;
  margin-bottom: 20px;
}

.page-hero__text {
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.8;
}

/* ============================================
   NOSOTROS PAGE
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.value-card {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  transition: border-color var(--transition);
}

.value-card:hover {
  border-color: var(--green);
}

.value-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.value-card__text {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--aqua);
}

.breadcrumb span {
  color: rgba(255,255,255,0.2);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-green { color: var(--green); }
.text-aqua { color: var(--aqua); }
.text-muted { color: var(--gray-muted); }
.text-center { text-align: center; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.divider {
  height: 1px;
  background: var(--gray-mid);
  margin: 48px 0;
}

.divider--dark {
  background: rgba(255,255,255,0.08);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  :root { --section-pad: 72px 24px; }
  .container { padding: 0 24px; }
  .nav__inner { padding: 0 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .nav__links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__deco-lines { display: none; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
