/* Basic reset */
* { box-sizing: border-box; }
html,body { margin:0; padding:0; font-family: Arial, sans-serif; color: #222; }

/* Colors: blanco, azul (#0056a3) y naranja (#ff7a00) */
:root{
  --blue:#0056a3;
  --orange:#ff7a00;
  --muted:#f4f8fc;
  --max-width:1100px;
}

/* Navigation */
.nav { background: var(--blue); color: #fff; position:sticky; top:0; z-index:1000; }
.nav-inner { max-width: var(--max-width); margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:8px 16px; }
.brand { display:flex; align-items:center; text-decoration:none; color:white; }
.logo { height:42px; margin-right:10px; }
.brand-name { font-weight:700; font-size:18px; }
.menu { list-style:none; margin:0; padding:0; display:flex; gap:18px; }
.menu a { color:white; text-decoration:none; font-weight:600; }
.menu a:hover { color: var(--orange); }
.menu-toggle { display:none; background:transparent; border:none; color:white; font-size:22px; }

/* Hero */
.hero { background: var(--muted); padding:40px 16px; text-align:center; }
.hero h1 { color: var(--blue); margin:0 0 10px; }
.lead { max-width:900px; margin:0 auto; font-size:16px; line-height:1.5; color:#333; }
.cta { display:inline-block; margin-top:14px; background:var(--blue); color:white; padding:10px 16px; text-decoration:none; border-radius:6px; }
.cta:hover { background:var(--orange); }

/* Sections */
.section { padding:36px 16px; }
.container { max-width: var(--max-width); margin:0 auto; }

/* Cards */
.cards { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-top:18px; }
.card { padding:16px; border-radius:8px; background:white; box-shadow:0 2px 6px rgba(0,0,0,0.06); }

/* Carousel (corregido) */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000; /* fondo de seguridad */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.slide img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;  /* llena el espacio, sin franjas */
  display: block;
}

.carousel-btn { 
  position:absolute; 
  top:50%; 
  transform:translateY(-50%); 
  background:rgba(0,0,0,0.45); 
  color:#fff; 
  border:none; 
  padding:8px 12px; 
  cursor:pointer; 
  border-radius:6px; 
}
.prev { left:12px; }
.next { right:12px; }
.dots { display:flex; gap:8px; justify-content:center; padding:12px; }

/* Contact */
.contact-grid { display:grid; grid-template-columns: 1fr 320px; gap:24px; align-items:start; margin-top:12px; }
.contact-form label { display:block; margin-bottom:8px; font-weight:600; color:#333; }
.contact-form input, .contact-form textarea { width:100%; padding:10px; border:1px solid #ccc; border-radius:6px; margin-top:6px; }
.contact-form button { margin-top:10px; background:var(--blue); color:white; padding:10px 14px; border:none; border-radius:6px; cursor:pointer; font-weight:700; }
.contact-form button:hover { background:var(--orange); }
.contact-info { padding:16px; background:#fff; border-radius:8px; box-shadow:0 2px 6px rgba(0,0,0,0.06); }

/* Footer */
.footer { background:var(--blue); color:white; padding:18px 16px; text-align:center; }

/* Responsive */
@media (max-width:800px){
  .menu { display:none; }
  .menu-toggle { display:block; }
  .contact-grid { grid-template-columns: 1fr; }
  .slide img { max-height: 60vh; }
}

@media (max-width: 769px) {
  .menu {
    display: flex;
    gap: 1rem;
  }  
}

/* --- Menú hamburguesa en móvil --- */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* debajo de la barra */
    right: 10px;
    background: var(--blue);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  .menu.menu-open {
    display: flex;
  }
 .menu a {
    color: white;
    font-weight: 600;
  }
  .menu a:hover {
    color: var(--orange);
  }
}

#texto-extra p {
  text-align: justify;
  line-height: 1.5;
}

/* Evitar que el menú tape la sección al hacer scroll */
section {
  scroll-margin-top: 80px; /* alto aproximado de la barra */
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20b955;
}

.whatsapp-float i {
  color: white;
}

/* Botón flotante Instagram */
.instagram-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 140px; /* más arriba que el WhatsApp */
  right: 20px;
  background: #E1306C;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  line-height: 50px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
}

.instagram-float:hover {
  background: #C13584;
  color: #fff;
}
