/* ==========================================================================
   VARIABLES DE COLOR (Cambiando el color principal aquí se actualiza en todo el sitio)
   ========================================================================== */
:root {
  --color-principal: #1e1e24;       /* Color base para el footer y elementos principales */
  --color-principal-hover: #2b2b36; /* Color para estados de hover y botones */
  --color-flechas-carrusel: rgba(30, 30, 36, 0.8);
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #e4e4ea;
    text-decoration: none;
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

/* HEADER & LOGO */
header {
    width: 100%;
    background-color: #e4e4ea;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
}

#logo_capsulas_difusoras {
    width: 85px;
    height: auto;
    display: block;
}

/* NAVEGACIÓN Y REDES */
nav {
    padding: 5px;
    margin: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #000000;
    text-align: center;
    font-size: 14px;
}

nav a {
    text-decoration: none;
    color: #000000;
    text-align: center;
    height: auto;
    padding: 10px;
    position: relative;
    transition: color 0.3s;
    font-size: x-large;
}

/* Efecto de línea inferior animada */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-principal);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--color-principal-hover);
}

nav a:hover::after {
    width: 100%;
}

/* MENÚ HAMBURGUESA & OVERLAY */
#menu-button {
    display: none;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    display: none;
    backdrop-filter: blur(10px);
}

#overlay.active {
    display: block;
}

/* SECCIONES Y TEXTO */
main {
    flex: 1 0 auto;
}

h1 {
    text-align: center;
    font-size: 34px;
}

h2 {
    margin-left: 1%;
    font-size: 26px;
    color: #000;
}

.construccion {
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    font-size: 24px;
}

p {
    margin-left: 1%;
    margin-right: 1%;
    font-size: 16px;
    line-height: 1.5;
}

section {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* CARRUSEL DE IMÁGENES (SLIDER) */
.slider {
    position: relative;
    width: 30%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

/* Ajuste en el contenedor de cada foto */
.slide {
    min-width: 100%;
    height: 500px; /* Altura fija para todas las fotos */
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* La imagen se encaja entera sin cortarse ni deformarse */
.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-flechas-carrusel);
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.prev:hover, .next:hover {
    background-color: var(--color-principal);
}

.prev { 
    left: 10px; 
}

.next { 
    right: 10px; 
}

/* FOOTER */
footer {
    width: 100%;
    display: block;
    margin: auto;
    margin-top: 5%;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
    background-color: var(--color-principal);
    color: white;
    padding-top: 15px;
    padding-bottom: 15px;
}

footer p {
    font-size: 14px;
    margin-top: 10px;
}

.direccion {
    display: block;
    margin: 10px auto;
    font-size: 16px;
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.direccion:hover {
    color: #b9b9b9;
}

footer .fa-instagram,
footer .fa-whatsapp {
    color: rgb(193, 181, 181);
    text-decoration: none;
    font-size: x-large;
    padding: 0 8px;
    transition: color 0.3s;
}

footer .fa-instagram:hover {
    color: #E1306C;
}

footer .fa-whatsapp:hover {
    color: #25D366;
}

/* MEDIA QUERIES (ADAPTACIÓN MÓVIL) */
@media handheld, screen and (max-width: 599px) and (min-width: 300px) {
    #menu-button {
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 24px;
        width: 30px;
    }

    .bar {
        width: 30px;
        height: 4px;
        background-color: var(--color-principal);
        border-radius: 5px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    #menu-button.open .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        transform-origin: center;
    }

    #menu-button.open .bar:nth-child(2) {
        opacity: 0;
    }

    #menu-button.open .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        transform-origin: center;
    }

    nav {
        display: none;
        flex-direction: column;
        background-color: #e4e4ea;
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        z-index: 100;
        margin-top: 60px;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 15px;
        text-align: center;
        font-size: 20px;
        display: block;
        margin: 10px auto;
    }

    #logo_capsulas_difusoras {
        margin-top: 5px;
        width: 60px;
    }

    h1 {
        margin-top: 15%;
        font-size: 22px;
    }

    h2 {
        margin-left: 5%;
        margin-right: 5%;
        font-size: 18px;
    }

    p {
        margin-left: 5%;
        margin-right: 5%;
        text-align: center;
        font-size: 16px;
    }

    footer {
        font-size: 10px;
    }

    footer p {
        font-size: 14px;
    }

    .slider {
        width: 90%;
        margin-top: 20px;
    }

    .prev, .next {
        padding: 8px 12px;
        font-size: 18px;
    }

    #google_translate_element {
        display: none;
    }
}