/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    background-color: rgba(17, 17, 17, 0.9); /* Fondo negro semitransparente */
    backdrop-filter: blur(10px);             /* Efecto blur */
    -webkit-backdrop-filter: blur(10px);     /* Soporte para Safari */
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Línea sutil inferior */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
}

.nav.active {
    display: block;
}

.nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #fff;
}

.cta {
    margin-top: 1rem;
    width: 100%;
}

.btn-call {
    display: inline-block;
    background-color: #e63946;
    color: #fff;
    padding: 0.75rem 1.2rem;
    letter-spacing: 2px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.btn-call i {
    margin-right: 8px;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

@media (min-width: 768px) {
    .container {
        flex-wrap: nowrap;
    }

    .nav {
        display: block !important;
        width: auto;
        margin-top: 0;
    }

    .nav ul {
        flex-direction: row;
        gap: 2rem;
    }

    .cta {
        width: auto;
        margin-top: 0;
    }

    .btn-call {
        width: auto;
    }

    .menu-toggle {
        display: none;
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 69vh;
    background-image: url('san-juan.jpg'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: #ddd;
}

.btn-hero {
    display: inline-block;
    background-color: #e63946;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-hero i {
    margin-right: 8px;
}

.btn-hero:hover {
    background-color: #d62839;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.25rem;
    }

    .btn-hero {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}



.info-section {
    padding: 3rem 1.5rem;
    background-color: #f9f9f9;
    color: #222;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.info-text {
    text-align: center;
}

.info-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #111;
}

.info-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.info-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Desktop layout */
@media (min-width: 768px) {
    .info-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 4rem;
    }

    .info-text {
        flex: 1;
        text-align: left;
    }

    .info-text h2 {
        font-size: 2rem;
    }

    .info-text p {
        font-size: 1.1rem;
    }

    .info-image {
        flex: 1;
    }
}




.faq-section {
    background-color: #fff;
    padding: 3rem 1.5rem;
    color: #222;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #111;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 1rem;
    color: #111;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
    color: #555;
}

.faq-answer p {
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Desktop: más espaciado */
@media (min-width: 768px) {
    .faq-container h2 {
        font-size: 2.5rem;
    }

    .faq-question {
        font-size: 1.25rem;
    }

    .faq-answer p {
        font-size: 1.05rem;
    }
}



.cta-banner {
    background-color: #111;
    color: #fff;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.cta-content p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.btn-call,
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.btn-call {
    background-color: #e63946;
    color: #fff;
}

.btn-call:hover {
    background-color: #d62839;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

/* Desktop layout */
@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
    }

    .btn-call,
    .btn-whatsapp {
        width: auto;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }
}


.image-text-section {
    background-color: #f9f9f9;
    padding: 3rem 1.5rem;
    color: #222;
}

.image-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.image-text-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
}

.image-text-content {
    text-align: center;
    max-width: 600px;
}

.image-text-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #111;
}

.image-text-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Desktop layout */
@media (min-width: 768px) {
    .image-text-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 3rem;
    }

    .image-text-content {
        text-align: left;
    }

    .image-text-content h2 {
        font-size: 2rem;
    }

    .image-text-content p {
        font-size: 1.1rem;
    }
}

.advantages-section {
    background-color: #ffffff;
    padding: 3rem 1.5rem;
    color: #222;
}

.advantages-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.advantages-container h2 {
    font-size: 1.75rem;
    color: #111;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.advantages-container p {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #444;
}

.advantages-container strong {
    color: #d72938;
    font-weight: bold;
}

/* Desktop */
@media (min-width: 768px) {
    .advantages-container h2 {
        font-size: 2.2rem;
    }

    .advantages-container p {
        font-size: 1.1rem;
    }
}



.contact-section {
    background-color: #f9f9f9;
    padding: 3rem 1.5rem;
    color: #222;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    font-size: 1.75rem;
    color: #111;
    margin-bottom: 0.5rem;
}

.contact-container p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e63946;
    outline: none;
}

.btn-submit {
    background-color: #e63946;
    color: #fff;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #d62839;
}

/* Desktop */
@media (min-width: 768px) {
    .contact-container h2 {
        font-size: 2rem;
    }

    .contact-container p {
        font-size: 1.1rem;
    }

    .btn-submit {
        width: fit-content;
        align-self: flex-start;
    }
}

.site-footer {
    background-color: #111;
    color: #fff;
    padding: 3rem 1.5rem 2rem;
    font-family: sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-branding h2 {
    font-size: 1.5rem;
    color: #e63946;
    margin-bottom: 0.5rem;
}

.footer-branding p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

.footer-contact h3,
.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-contact a,
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: #e63946;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #777;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 4rem;
    }

    .footer-branding,
    .footer-contact,
    .footer-links {
        flex: 1;
    }

    .footer-branding {
        max-width: 350px;
    }
}

.simple-section {
  display: grid;
  gap: 3.5rem;
  padding: 1rem 1rem;
}

.simple-img {
  width: 100%;
  max-width: 399px;
  max-height: 369px;
  height: auto;
  border-radius: 0.75rem;
  object-fit: cover;
}

.simple-content h2 {
  margin: 0;
  font-size: 1.7rem;
}

.simple-content p {
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
  font-size: 1.15rem;
}

.simple-content a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #1a468c;
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.simple-content a:hover {
  background: #1041a8;
}

@media (min-width: 768px) {
  .simple-section {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (min-width: 999px) {
  .simple-section {
    margin-left: 300px;
    margin-left: 19px;
  }
}

.elegant-section {
  --bg: #1e2736;
  --card: linear-gradient(180deg,#0a1223 0%, #101826 100%);
  --accent: #c53333;
  --muted: #929aa5;
  --text: #b5bdc5;
  --radius: 1rem;
  --pad: clamp(1rem, 4vw, 2rem);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial;
  color: var(--text);
  padding: calc(var(--pad) * 1.25);
  display: grid;
  place-items: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.elegant-section, .elegant-section * { box-sizing: border-box; }

.elegant-section__card {
  width: 100%;
  max-width: 880px;
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: 0 12px 40px rgba(2,8,23,0.55), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.04);
  display: grid;
  gap: clamp(.6rem, 2vw, 1rem);
  align-items: start;
}

.elegant-section__kicker {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  background: linear-gradient(90deg, rgba(255,107,107,0.12), transparent 10%);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: .25rem;
}

.elegant-section__title {
  margin: 0;
  font-size: clamp(1.3rem, 4.5vw, 2.05rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

.elegant-section__text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 2.5vw, 1.05rem);
  line-height: 1.6;
  max-width: 62ch;
}

@media (min-width: 900px) {
  .elegant-section__card {
    grid-template-columns: 1fr 420px;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: center;
}

@media (prefers-color-scheme: light) {
  .elegant-section {
    --bg: #f7fafc;
    --card: linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
    --accent: #d63f3f;
    --muted: #55606a;
    --text: #0b1220;
  }
}

.elegant-section__card a,
.elegant-section__card button {
  outline: none;
}
.elegant-section__card a:focus-visible,
.elegant-section__card button:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .elegant-section__card { transition: none; }
} 
}



.shutter-section {
  --bg: #0f1724;
  --card: linear-gradient(180deg,#0b1220 0%, #0e1624 100%);
  --accent: #ff6b3a;
  --muted: #9fb0c3;
  --text: #e7eef6;
  --radius: 0.9rem;
  --pad: clamp(1rem, 4vw, 1.5rem);
  font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial;
  color: var(--text);
  padding: calc(var(--pad) * 1.15);
}

/* evitar fugas de estilo */
.shutter-section, .shutter-section * { box-sizing: border-box; }

/* Card */
.shutter-section__card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--pad);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(2,8,23,0.55), inset 0 1px 0 rgba(255,255,255,0.02);
  display: grid;
}

/* Header */
.shutter-section__kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .29em;
  text-transform: uppercase;
  color: var(--accent);
  background: linear-gradient(90deg, rgba(255,107,58,0.12), transparent 60%);
  padding: .2rem .6rem;
  border-radius: 999px;
}

.shutter-section__title {
  margin: .25rem 0 0;
  font-size: clamp(1.15rem, 4.5vw, 1.6rem);
  line-height: 1.05;
  font-weight: 700;
  max-width: 369px;
}

/* Body */
.shutter-section__text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 2.6vw, 1rem);
  line-height: 1.6;
}

/* Lista de servicios */
.shutter-section__list {
  margin: .75rem 0 0;
  padding-left: 1.15rem;
  color: var(--text);
  list-style: disc;
  line-height: 1.5;
  font-size: .98rem;
}

.shutter-section__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: .55rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.02);
}

/* Visual / icon (oculto para lectores) */
.shutter-section__visual {
  display: none; /* mobile: oculto para priorizar texto */
}

/* Desktop layout: dos columnas (texto + visual) */
@media (min-width: 900px) {
  .shutter-section__card {
    grid-template-columns: 1fr 360px;
    gap: 1.25rem;
    align-items: center;
  }
  .shutter-section__visual { display: block; justify-self: center; }
}

/* Modo claro */
@media (prefers-color-scheme: light) {
  .shutter-section {
    --bg: #f7fafc;
    --card: linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
    --accent: #d85b2f;
    --muted: #475569;
    --text: #071228;
  }
}

/* Accesibilidad: focus visible */
.shutter-section__cta:focus-visible,
.shutter-section__phone:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 20%, transparent);
  outline-offset: 3px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .shutter-section__cta { transition: none; transform: none; }
}



.cerrajeria-section {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cerrajeria-container {
  max-width: 700px;
  text-align: center;
}

.cerrajeria-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.cerrajeria-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Responsive: mayor tamaño de fuente en tablets y desktop */
@media (min-width: 600px) {
  .cerrajeria-title {
    font-size: 2rem;
  }
  .cerrajeria-description {
    font-size: 1.1rem;
  }
}

@media (min-width: 900px) {
  .cerrajeria-section {
    padding: 3rem 1rem;
  }
  .cerrajeria-title {
    font-size: 2.2rem;
  }
  .cerrajeria-description {
    font-size: 1.2rem;
  }
}



.cerraduras-section {
  padding: 2rem 1rem;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cerraduras-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  gap: 1.5rem;
  text-align: center;
}

.cerraduras-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  object-fit: cover;
}

.cerraduras-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.cerraduras-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Responsive: tablets y desktop */
@media (min-width: 600px) {
  .cerraduras-title {
    font-size: 2rem;
  }
  .cerraduras-description {
    font-size: 1.1rem;
  }
}

@media (min-width: 900px) {
  .cerraduras-container {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }
  .cerraduras-image {
    width: 50%;
  }
  .cerraduras-text {
    width: 50%;
  }
  .cerraduras-title {
    font-size: 2.2rem;
  }
  .cerraduras-description {
    font-size: 1.2rem;
  }
}

section#mapa-servicio {
      width: 100%;
      padding: 1rem;
      box-sizing: border-box;
      background: #f9fafb;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }

    section#mapa-servicio h2 {
      font-size: 1.5rem;
      color: #111827;
      text-align: center;
      margin: 0;
    }

    /* Contenedor del mapa */
    #map {
      width: 100%;
      max-width: 490px;
      height: 290px;
      max-height: 290px;
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      background: #e5e7eb; /* color de fondo mientras carga el mapa */
    }

    /* Responsive */
    @media (min-width: 768px) {
      #map {
        height: 500px;
      }
      section#mapa-servicio h2 {
        font-size: 2rem;
      }
    }