body { font-family: Arial, sans-serif; line-height: 1.6; text-align: center; margin: 0 0 0 0;}

header { background-color: #22234c; color: white; padding: 3px 122px; position: sticky; top: 0; z-index: 1000;
         transition: all 0.4s ease; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(0px); }

.logo { font-size: 32px; font-weight: bold; margin-top: 10px; transition: font-size 0.4s ease, transform 0.4s ease;}
.logo img { width: 160px; transition: transform 0.3s, filter 0.3s ease-in-out; filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.74)); }
.logo img:hover {transform: scale(1.05); filter: drop-shadow(0 0 20px #00bfff); } 

header.shrink { padding: 0px 0px; background-color: rgba(2, 36, 71, 0.493); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); transition: all 0.4s ease-in-out; }
header.shrink .logo {font-size: 20px; transform: scale(0.7); letter-spacing: 1px;}

.navbar { display: flex; justify-content: space-around; align-items: center; flex: 2; gap: 20px;}
.navbar ul { font-size: 20px; list-style: none; display: flex; gap: 15px; justify-content: center; align-items: center; padding-right: 80px;}
.navbar a { color: white; text-decoration: none; transition: color 0.3s;}
.navbar a:hover {color: #00bfff; transform: scale(1.15); filter: drop-shadow(0 0 20px rgba(0, 191, 255, 1));}


.submenu { position: relative;}
.submenu-items { display: none; position: absolute; top: 100%; left: 0; background-color:#0224477e; list-style: none; padding: 10px 0; margin: 0;
    min-width: 220px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.096); z-index: 999; opacity: 0; visibility: hidden;}
.submenu-items li {padding: 8px 15px;}
.submenu-items li a {color: white; text-decoration: none; display: block; transition: background 0.3s; text-align: center;}
.active { background-color: rgba(0, 0, 0, 0);}
.submenu-items li a:hover { background-color: #0066cc31;}

/* Mostrar submenú cuando tenga clase activa */
.submenu-items.active { display: block; opacity: 1; visibility: visible; padding-right: 0px; background-color: #22234c;}


.menu-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer;}

#hero { position: relative; height: 60vh; display: flex; justify-content: center; align-items: center; color: white; text-align: center; overflow: hidden;}

.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;z-index: -1; filter: brightness(0.9);}
.hero-content { z-index: 1; padding: 20px; backdrop-filter: blur(5px); background-color: rgba(0, 0, 0, 0.13); border-radius: 15px;}
.hero-content h1 { font-size: 2.5rem; margin: 0;}
.hero-content p { font-size: 1.2rem; margin-top: 10px;}

#sobre-nosotros { width: 100px; padding: 20px 20px; background-color: #22234c;}

/*carrusel de imagenes*/

.slider-container {  position: relative;  width: 100%; max-width: 80%; overflow: hidden; border-radius: 10px;  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.171);
      margin-left: 13%; margin-top: 5%;}
.slider { display: flex; transition: transform 0.5s ease-in-out;}
.slide { min-width: 100%; transition: opacity 1s;}
.slide img { width: 100%; border-radius: 10px;}

/* Botones de navegación */
.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.5);  color: white; border: none;  padding: 10px;
    cursor: pointer; border-radius: 50%; font-size: 18px; transition: 0.3s;}
.prev { left: 10px; }
.next { right: 10px; }
.prev:hover, .next:hover { background-color: rgba(0, 0, 0, 0.8);}

/* Indicadores */
.dots { text-align: center; margin-top: 10px;}
.dot { height: 10px; width: 10px; margin: 0 5px; background-color: gray; border-radius: 50%; display: inline-block; transition: background-color 0.3s; cursor: pointer;}


/* Estilos para Imágenes Interactivas */
#imagenes-interactivas { padding: 20px; background-color: white; text-align: center; }

.interactive-gallery { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;}
.interactive-item { width: 300px; height: 300px; border: 2px solid #939597;   border-radius: 15px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; background-color: white; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);}
.interactive-item img { width: 100%; height: 85%; object-fit: cover; transition: transform 0.5s ease;}
.interactive-item p { margin: 5px; font-size: 1em; color: #003366;}
.interactive-item:hover { transform: scale(1.05); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);}
.interactive-item:hover img { transform: scale(1.1);}

/* seccion trasparente*/

 /* Sección con imagen de fondo fija */
 .seccion {
    position: relative;
    background: fixed no-repeat url('../img/salud-bienestar.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    height: 48vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
   
}

/* Capa semitransparente */
.contenido {
    background-color: rgba(0, 0, 0, 0);
    color: #003366;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 60%;
}


/*blog*/


.featured-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.479);
    border-radius: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.featured-post {
    background: white;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    cursor: pointer;
}

.featured-post img {
    width: 100%;
    height: 204px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.featured-post:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.view-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.view-more:hover {
    background-color: #1d6fa5;
}

/* Sección de contacto */

.contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Estilos del formulario */
form {
    background: linear-gradient(135deg, #004080, #00264d);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    color: white;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-left: auto; 
}

form:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}


form::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(45deg);
    z-index: 0;
    filter: blur(5px);
}


form input, form textarea {
    width: 90%;
    padding: 15px;
    margin: 15px 0;
    border: none;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    z-index: 1;
    position: relative;
    outline: none;
    transition: box-shadow 0.3s, transform 0.3s;
    font-size: 1rem;
}


form input:focus, form textarea:focus {
    box-shadow: 0 0 12px rgba(0, 191, 255, 0.8);
    transform: scale(1.02);
}



.checkbox {
    margin-bottom: 20px;
    font-size: 14px;
    }

    .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 6px; 
    font-weight: normal;
    cursor: pointer;
    }

    .checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    }

    .legal-links {
      font-size: 14px;
      margin-bottom: 20px;
     
    }

    .legal-links a{
      font-size: 14px;
      margin-bottom: 20px;
      color: #00bfff;
    }
    .legal-links a:hover{
      font-size: 14px;
      margin-bottom: 20px;
      color:#0080ff;
    }


form button {
    background-color: #00bfff;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1;
    position: relative;
    font-weight: bold;
    font-size: 1.1rem;
}


form button:hover {
    background-color: #0080ff;
    transform: scale(1.1);
}



.btn-wsp {
    position: fixed;
    width: 55px;
    height: 55px;
    line-height: 55px;
    bottom: 30px;
    right: 30px;
    background: #0df053;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
}

.btn-wsp:hover {
    text-decoration: none;
    background: #0b3807;
    transition: 0.5s;
}

.icon-whatsapp {
    margin-top: 7px;
    width: 40px;

}


.footer {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #f0f0f0;
    flex-wrap: wrap;
    text-align: center; 
}


.newsletter {
    background-color: #ffffff;
    padding: 20px;
    border: 2px solid #004080;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 350px;
    min-width: 280px;
}

.newsletter h3 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 10px;
    text-align: center;
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter input[type="email"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter input[type="email"]:focus {
    border-color: #00bfff;
}


.newsletter button {
    background-color: #004080;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
}

.newsletter button:hover {
    background-color: #00bfff;
    transform: scale(1.05);
}

.nav__footer {
    padding-bottom: 20px;
    display: grid;
    grid-auto-flow: row;
    height: 100%;
    margin-top: 0px;
}
.footer__title {
    font-weight: 300;
   
}

.footer__information {
    margin: 0px;
}




.redes-sociales {
    background-color: #e6f2ff;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #004080;
    border-radius: 5px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 350px;
    min-width: 280px;
    margin-top: 4%;
}

.redes-sociales h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: bold;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}

.social-icon {
    background-color: #004080;
    color: white;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
}

.social-icon:hover { transform: scale(1.2);}
.social-icon.facebook:hover { background-color: #1877F2;}
.social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: white;}

/* Derechos reservados */
#derechos-reservados { border-top: 3px solid #003366; padding: 10px; text-align: center; background-color: #003366;}
#derechos-reservados p{ font-size: 1em; font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #f4f4f4; font-weight:lighter;}


/*Sub menus*/

/* --- MAIN INDEPENDIENTE --- */
/* --- MAIN INDEPENDIENTE --- */
.contenido-principal {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #1a1e4f;
  text-align: center;
}

/* Intro */
.contenido-principal .intro h1 {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 10px;
}

.contenido-principal .intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Esencias Compuestas */
.esencias-compuestas h2,
.esencias-individuales h2 {
  color: #22234c;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.grid-esencias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.grid-esencias article {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.grid-esencias article img {
  width: 120px; /* ancho pequeño */
  height: 180px; /* vertical */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.grid-esencias article:hover img {
  transform: scale(1.05);
}

.grid-esencias article:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.grid-esencias h3 {
  color: #004080;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.grid-esencias p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}

/* Esencias Individuales */
.lista-esencias {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.lista-esencias li {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.95rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lista-esencias li:hover {
  background: #f0f8ff;
  transform: scale(1.03);
}

/* --- MAIN HOMEOPATIA --- */
.contenido-homeopatia {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #1a1e4f;
  text-align: center;
}

/* Intro */
.intro-homeopatia h1 {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 10px;
}

.intro-homeopatia p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Lista de Policrestos */
.lista-policrestos h2 {
  color: #004080;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.lista-policrestos ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.lista-policrestos li {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lista-policrestos li:hover {
  background: #e0f7fa;
  transform: scale(1.03);
}


@media (max-width: 1000px) {

    header { padding: 15px 20px; justify-content: space-between; }
    header.shrink { padding: 5px 15px; background-color: rgba(2, 36, 71, 0.493); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px);}
    .logo { font-size: 20px; transition: font-size 0.4s ease, transform 0.4s ease;}
    header.shrink .logo { font-size: 16px; transform: scale(0.85); }

    .navbar ul {display: none; flex-direction: column; background-color:#22234c; position: absolute; top: 77px; left: 13px; right: auto; width: 83%;  padding: 10px 20px;
                border-radius: 0px; margin-left: -46px;}
    .navbar ul.active { display: flex; }
    .menu-toggle { display: block; background: none; border: none; font-size: 28px; color: white; cursor: pointer;  padding-right: 20px; }

    .submenu-items { position: static; display: none !important; opacity: 0; visibility: hidden; background-color: transparent; box-shadow: none; padding-left: 15px; margin-top: 5px;
                    width: 100%; text-align: left;}
    .submenu-items.active { display: block !important; opacity: 1; visibility: visible; }
    .submenu-items li { text-align: left; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
    .submenu-items li a { color: white; font-size: 18px;}

    .nav-links { display: none; flex-direction: column; background-color: rgba(0, 64, 128, 0.95); position: absolute; top: 60px; right: 20px; padding: 15px;
            border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);  transition: all 0.3s ease-in-out; }
    .nav-links.active {  display: flex; padding-right: 53px; padding-left: 53px;}
    .nav-links li { margin: 10px 0; }
    .nav-links a { color: white; text-decoration: none; font-size: 18px; transition: color 0.3s ease; }
    .nav-links a:hover { color: #00bfff; }
    .hero-content h1 { font-size: 2rem;}
    .hero-content p { font-size: 1rem; }
    .seccion { height: 46vh;}
    .contenido{ max-width: 86%; }
    .carrusel-container{ width: 100%; height: 20vh; }
    .carrusel-slide{ width: 100%; }
    .carrusel-slide img{ margin-left: 1px; }
    .prev, .next {  padding: 8px; font-size: 16px;}
    .contact-section { padding: 20px; flex-direction: column;}
    .form { width: 50%; }
    .footer { align-items: center; }
    .redes-sociales{ margin-top: 5px;}
    .newsletter, .redes-sociales { width: 50%;}   

   .grid-esencias article img {
    width: 100px;
    height: 150px;
  }

   .lista-policrestos ul {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

@media (max-width: 600px) {
    header { justify-content: center;}
    .logo { margin-right: auto; padding-left: 20px;}
    .navbar { justify-content: center; }
    .hero-video { max-height: 70vh;}
    .seccion { height: 96vh; }
  }

  }
  
 