/* CiberBaixa - Estilos principales */
/* Enfoque: Seguridad y Blindaje · Marina Baixa */

:root {
  --azul-oscuro: #0A2540;
  --azul-medio: #1E4A6E;
  --azul-claro: #E8F1F8;
  --verde: #1B5E20;
  --verde-claro: #E8F5E9;
  --gris-texto: #333333;
  --gris-claro: #666666;
  --blanco: #ffffff;
  --sombra: 0 4px 12px rgba(10, 37, 64, 0.08);
  --radio: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gris-texto);
  line-height: 1.6;
  background: var(--blanco);
}

a {
  color: var(--azul-medio);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.header {
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sombra);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--blanco);
  text-decoration: none;
}

.logo span {
  color: #4CAF50;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--blanco);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
  text-decoration: none;
}

.btn-nav {
  background: #2E7D32;
  color: var(--blanco) !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radio);
  font-weight: 600;
}

.btn-nav:hover {
  background: #1B5E20;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-medio) 100%);
  color: var(--blanco);
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 700px;
  margin: 0 auto 1.75rem;
  line-height: 1.5;
}

.hero-cta {
  display: inline-block;
  background: #2E7D32;
  color: var(--blanco);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radio);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: #1B5E20;
  text-decoration: none;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-title {
  font-size: 1.6rem;
  color: var(--azul-oscuro);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--gris-claro);
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--blanco);
  border: 1px solid #e0e0e0;
  border-radius: var(--radio);
  padding: 1.5rem;
  box-shadow: var(--sombra);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.12);
}

.card h3 {
  color: var(--azul-oscuro);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--gris-claro);
  font-size: 0.95rem;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step {
  text-align: center;
  padding: 1.25rem;
}

.step-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: var(--azul-oscuro);
  color: var(--blanco);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step h3 {
  color: var(--azul-oscuro);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

/* CTA Block */
.cta-block {
  background: var(--azul-claro);
  border-radius: var(--radio);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-block h2 {
  color: var(--azul-oscuro);
  margin-bottom: 0.75rem;
}

.cta-block p {
  color: var(--gris-claro);
  margin-bottom: 1.25rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radio);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--azul-medio);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--azul-oscuro);
  border: 2px solid var(--azul-oscuro);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radio);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.75rem;
}

.btn-secondary:hover {
  background: var(--azul-oscuro);
  color: var(--blanco);
  text-decoration: none;
}

/* Why us */
.why-list {
  list-style: none;
  max-width: 700px;
  margin: 1.5rem auto 0;
}

.why-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.why-list li:last-child {
  border-bottom: none;
}

.why-list .check {
  color: var(--verde);
  font-weight: 700;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: var(--azul-oscuro);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer h4 {
  color: var(--blanco);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--blanco);
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Page specific */
.page-hero {
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.content-block h2 {
  color: var(--azul-oscuro);
  margin: 1.75rem 0 0.75rem;
  font-size: 1.3rem;
}

.content-block p {
  margin-bottom: 1rem;
}

.content-block ul {
  margin: 0.75rem 0 1.25rem 1.25rem;
}

.content-block li {
  margin-bottom: 0.4rem;
}

/* Form */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--azul-oscuro);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: var(--radio);
  font-size: 1rem;
  font-family: inherit;
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--gris-claro);
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 700px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  .nav {
    gap: 0.9rem;
    font-size: 0.9rem;
  }
  .btn-secondary {
    margin-left: 0;
    margin-top: 0.75rem;
    display: inline-block;
  }
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
}
