:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1a1d29;
  --muted: #000000;
  --brand: #3bd2e6;
  --border: #e5e8f0;
  --ring: rgba(27, 99, 211, 0.35);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.brand-logo img {
  display: block;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-list a {
  color: var(--text);
  font-weight: 600;
}

.only-mobile {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  border: 1px solid transparent;
}

.btn-lg {
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px -6px var(--ring);
}

.btn-primary:hover {
  filter: brightness(.98);
}

.btn-outline {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.btn-outline:hover {
  border-color: #d4d8e3;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--ring);
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  display: block;
  background: var(--text);
  height: 2px;
  border-radius: 2px;
  transition: .2s;
}

.nav-toggle .bars {
  position: relative;
}

.nav-toggle .bars::before {
  position: absolute;
  top: -8px;
  width: 24px;
}

.nav-toggle .bars::after {
  position: absolute;
  top: 8px;
  width: 24px;
}

.form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: #c4f8ff;
}

.formulario {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.15);
}

.formulario h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

.formulario label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}

.formulario input,
.formulario select {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.formulario input:focus,
.formulario select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

.formulario button {
  width: 100%;
  margin-top: 10px;
}

.form-extra {
  margin-top: 12px;
  font-size: 0.95rem;
  text-align: center;
  color: var(--muted);
}

.form-extra a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.form-extra a:hover {
  text-decoration: underline;
}


/* ==== Footer ==== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-copy {
  padding: 14px 0;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
  flex-basis: 100%;
}

.link {
  color: var(--text);
  opacity: .9;
}

.link:hover {
  opacity: 1;
}

.logos {
  width: 35px;
  height: 35px;
  margin: 10px;
  display: inline;
}

/* ==== Responsive ==== */
@media (max-width: 720px) {
  .nav-list {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 14px 18px;
    transform: translateY(-120%);
    transition: .25s ease;
    /*box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.25);*/
  }

  .site-nav.open .nav-list {
    transform: translateY(0);
  }

  .only-mobile {
    display: list-item;
  }

  .hide-mobile {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta {
    margin-left: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social {
    margin-top: 10px;
  }
}

.page-contacto {
  background: var(--bg);
}

.hero-contacto {
  background: url(../imagenes/jpg) center/cover no-repeat;
  text-align: center;
  padding: 80px 20px;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0,0,0,.45);
}

.formulario textarea {
  width: 100%;
  min-height: 220px;     
  max-height: 220px;    
  resize: none;          
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.formulario textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}



@media (max-width: 720px){
  .nav-toggle{ z-index: 1000; }  

  .nav-list{
    position: fixed;
    top: 64px;             
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    /*gap: 12px;*/
    padding: 16px 20px;
    transform: translateY(-120%);
    transition: transform .25s ease;
    /*box-shadow: 0 16px 30px -20px rgba(0,0,0,.25);*/
    z-index: 999;            
    max-height: 100dvh;
    overflow: auto;
  }

  .site-nav.open .nav-list{ transform: translateY(0); }

  body.menu-open{ overflow: hidden; }
}

