/* =============================================
   OG CONTABILIDAD DEL SURESTE - Estilos Principales
   ============================================= */

/* Variables de color */
:root {
  --color-primary: #01B5F0;
  --color-secondary: #232E52;
  --color-accent: #F44336;
  --color-bg-services: #EEF0F2;
  --color-text-dark: #111827;
  --color-text-muted: #6B7280;
  --color-white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--color-text-dark);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
  background-color: var(--color-secondary);
  padding: 0.5rem 0;
}

.topbar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.topbar__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.topbar__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  transition: color 0.2s;
}

.topbar__link:hover {
  color: var(--color-primary);
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__social a {
  color: var(--color-white);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.topbar__social a:hover {
  color: var(--color-primary);
}

@media (min-width: 640px) {
  .topbar__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =============================================
   HEADER / NAVEGACIÓN
   ============================================= */
.header {
  background-color: var(--color-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.header__logo img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.header__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.header__menu-btn:hover {
  color: var(--color-primary);
}

.header__nav {
  display: none;
}

.header__nav ul {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.header__nav a {
  color: var(--color-white);
  transition: color 0.2s;
  letter-spacing: 0.025em;
}

.header__nav a:hover {
  color: var(--color-primary);
}

/* Menú móvil desplegado */
.header__mobile-nav {
  display: none;
  padding-bottom: 1rem;
}

.header__mobile-nav.is-open {
  display: block;
}

.header__mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.header__mobile-nav a {
  display: block;
  color: var(--color-white);
  padding: 0.5rem 0;
  transition: color 0.2s;
  letter-spacing: 0.025em;
}

.header__mobile-nav a:hover {
  color: var(--color-primary);
}

@media (min-width: 1024px) {
  .header__logo img {
    height: 4rem;
  }
  .header__menu-btn {
    display: none;
  }
  .header__nav {
    display: block;
  }
  .header__mobile-nav {
    display: none !important;
  }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background-color: var(--color-white);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column-reverse;
  min-height: 500px;
}

.hero__content {
  display: flex;
  align-items: center;
  padding: 3rem 2rem;
}

.hero__text {
  max-width: 36rem;
}

.hero__title {
  color: var(--color-text-dark);
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.hero__divider {
  width: 16rem;
  height: 4px;
  background-color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.hero__description {
  color: rgba(17,24,39,0.8);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  text-align: justify;
}

.hero__cta {
  display: flex;
  justify-content: center;
}

.hero__image {
  position: relative;
  height: 260px;
  background-color: var(--color-white);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1024px) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: unset;
    min-height: 600px;
  }
  .hero__content {
    padding: 4rem;
  }
  .hero__title {
    font-size: 3rem;
  }
  .hero__image {
    height: auto;
  }
  .hero__cta {
    justify-content: flex-start;
  }
}

/* =============================================
   BOTONES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.88;
}

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

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =============================================
   VALUE PROPS
   ============================================= */
.value-props {
  background-color: var(--color-white);
  padding: 4rem 0;
}

.value-props__grid {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.value-card {
  text-align: center;
  padding: 2rem;
}

.value-card__icon-wrap {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: #FFE5E5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.value-card__icon-inner {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card__icon-inner svg {
  color: var(--color-white);
}

.value-card__title {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card__desc {
  color: var(--color-text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .value-props__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   SERVICIOS
   ============================================= */
.services {
  background-color: var(--color-bg-services);
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.section-header .divider {
  width: 6rem;
  height: 4px;
  background-color: var(--color-primary);
  margin: 0 auto;
}

.section-header .divider--accent {
  background-color: var(--color-accent);
}

.services__grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  background-color: var(--color-white);
  border: 2px solid #E5E7EB;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-card__image {
  height: 12rem;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  padding: 1.5rem;
}

.service-card__title {
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 1rem;
}

.service-card__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-dark);
  text-align: justify;
}

.bullet-dot {
  color: var(--color-accent);
  font-size: 1.2rem;
  line-height: 1.3;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* =============================================
   ¿POR QUÉ ELEGIRNOS?
   ============================================= */
.why-us {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 5rem 0;
}

.why-us .section-header h2 {
  color: var(--color-white);
}

.why-us__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  background-color: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.why-card__icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-card p {
  font-size: 1.05rem;
  text-align: justify;
}

@media (min-width: 768px) {
  .why-us__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   FORMULARIO DE CONTACTO
   ============================================= */
.contact {
  background-color: var(--color-white);
  padding: 5rem 0;
}

.contact__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.contact .section-header h2 {
  color: var(--color-secondary);
}

.contact .section-header .divider {
  margin-bottom: 1.5rem;
}

.contact__description {
  color: var(--color-text-muted);
  text-align: justify;
  margin-top: 1.25rem;
}

.contact__form-wrap {
  background-color: rgba(243,244,246,0.5);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--color-text-dark);
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 181, 240, 0.15);
}

.form-control.is-error {
  border-color: var(--color-accent);
}

textarea.form-control {
  min-height: 7.5rem;
  resize: vertical;
}

.form-error {
  color: var(--color-accent);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  max-width: 22rem;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.toast.is-visible {
  transform: translateY(0);
}

.toast__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.footer__main {
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__logo img {
  height: 3rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer__tagline {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  text-align: justify;
}

.footer__heading {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__contact-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.footer__contact-item a {
  color: var(--color-white);
  transition: color 0.2s;
}

.footer__contact-item a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: background-color 0.2s;
}

.social-btn:hover {
  background-color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
  text-align: center;
}

.footer__copyright {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer__disclaimer {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* =============================================
   ÍCONOS SVG - utilidad
   ============================================= */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
