:root {
  --morena-top: #8b0000;
  --morena-bottom: #4c1c1c;
  --footer: #3a1414;
  --cream: #fbf6ef;
  --text: #222;
  --accent: #753232;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--text);
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, var(--morena-top), var(--morena-bottom));
  color: #fff;
  padding: 10px 0;
  z-index: 100;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  animation: fadeInDown 0.6s ease forwards;
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ================= LOGO / BRAND ================= */
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,0.08);
  padding: 10px 16px;
  border-radius: 18px;
}

.brand img.logo {
  height: 90px;
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand img.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.brand .title h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.brand .title small {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ================= NAV ================= */
nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  font-weight: 600;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
}

/* ================= MAIN ================= */
main {
  padding: 140px 16px 60px;
  max-width: 1200px;
  margin: auto;
}

/* ================= VIDEO PORTADA ================= */
.video-portada {
  width: 92vw;          /* 🔹 NO ocupa todo, solo 90% de la pantalla */
  max-width: 1000px;    /* 🔹 límite máximo */
  margin: 20px auto;    /* centrado */
  background-color: transparent !important;
}

.video-portada video {
 width: 100%;
  height: 550px;        /* altura tipo banner */
  object-fit: cover;
  border-radius: 14px;  /* esquinas elegantes */
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  object-position: center 70%;
}

/* ================= TEXTO ================= */
h2 {
  color: var(--morena-top);
  font-size: 2em;
}

p {
  max-width: 750px;
  line-height: 1.6;
}

/* ================= BOTÓN ================= */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

/* ================= CARDS ================= */
.card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  margin: 20px 0;
}

/* ================= GRID ================= */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* ================= CARRUSEL ================= */
.carrusel {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 12px;
   margin: 30px auto;
}

.slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.slides img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.carrusel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.carrusel .prev { left: 12px; }
.carrusel .next { right: 12px; }

/* ================= FOOTER ================= */
footer {
  background: var(--footer);
  color: #fff;
  padding: 25px;
  text-align: center;
  margin-top: 40px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: center;
  }
}

/* ================= ANIMACIÓN ================= */
@keyframes fadeInDown {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* ================= servicios despliege ================= */
details
{
background: #f1f1f1;
padding: 10px;
border-radius: 8px;
margin: 10px 0;
cursor: pointer;
}

summary 
{
font-weight: bold;
font-size: 16px;
}