/* Importación de fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;900&family=Playfair+Display:ital,wght@1,400&family=Raleway:wght@400;700&display=swap');

/* Ajuste de color naranja */
:root {
    --main-orange: #ff9900;
    /* Cambiado a un tono menos rojo */
}

/* Estilos generales */
body {
    font-family: 'Inter', sans-serif;
    background-image: url('/img/fondowebcosmicpack.png');
    /* Use absolute path to avoid 404 errors */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}
p {
  padding: 2rem;
}

/* Navbar contenedor */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--dark-trans);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Logo */
.logo {
    background: var(--white);
    border-radius: 50%;
    overflow: hidden;
}

.logo img {
    height: 50px;
    display: block;
}

/* Enlaces */
.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, padding 0.2s;
}

/* Hover general: agrega padding extra */
.nav-links a:hover {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Botón Contacto por defecto */
.nav-links a.contact-btn {
    background-color: var(--white);
    color: var(--main-orange);
}

/* Hover Contacto */
.nav-links a.contact-btn:hover {
    background-color: var(--main-orange);
    color: var(--white);
}

/* Hamburger button */
.toggle-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.toggle-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 40px auto 20px;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Añadido un dropshadow más visible */
}


.section {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.section p {
    text-align: justify;
    color: #555;
}

/* Títulos */
h1 {
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    top: 70px;
    /* Ajusta este valor según la altura de la navbar */
    background-color: #f9f9f9;
    z-index: 999;
    /* Asegura que el título esté por encima del contenido */
    padding: 1.7rem;
    border-radius: 35px;
    margin: 10px;
    text-align: center;
}

h2 {
    color: #222;
    font-size: 2rem;
    font-weight: 300;
    margin: 45px auto 20px;
    /* 95px de margen superior en vez de top */
    padding: 15px 0;
    border-radius: 20px;
    text-align: center;
    /* position: relative;  elimina */
    /* top: 70px;           elimina */
    z-index: 1;
    /* baja el z-index, no hace falta que flote tanto */
}

h3 {
    color: #444;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 30px auto 15px;
    /* 70px de margen superior */
    padding: 10px 0;
    border-bottom: 1px dashed #aaa;
    border-radius: 15px;
    text-align: center;
    /* position: relative;  elimina */
    /* top: 70px;           elimina */
    z-index: 1;
}

.header {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 20px;

}


/* Reducir tamaño de logo de forma global */
.header img {
    max-width: 120px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}



.header h1 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
    padding: 1rem;
}

.header h2 {
    font-size: 1.2rem;
    color: #555;
}

/* Énfasis en párrafos */
.emphasis {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--main-orange);
}

/* Botones */
button {
    background: var(--main-orange);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    /* Incrementado a 12px */
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Añadido dropshadow */
}

button:hover {
    background: #e68a00;
    /* Un tono más oscuro para hover */
}

/* Ajuste de espaciado entre secciones */
section {
    margin: 0;
    /* Removed margins */
    padding: 10px;
    /* Removed paddings */
    background-color: #f9f9f9;
    /* Light background for separation */
    border-radius: 10px;
    /* Rounded corners for better aesthetics */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

.btn-success:hover {
    background-color: #25D366 !important;
    /* WhatsApp green */
    color: white !important;
}

/* Formularios */
input,
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 12px;
    /* Incrementado a 12px */
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Añadido dropshadow */
}

input:focus,
textarea:focus {
    border-color: var(--main-orange);
    outline: none;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background: var(--main-orange);
    color: #fff;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Enlaces */
a {
    color: var(--main-orange);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Estilo para imágenes de ejemplos */
.images {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 10px;
      width: 100%;
    max-width: 100%;
}

.image {
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        max-width: 100%;

}

.image img {
    max-width: 100%;
    border-radius: 15px;
    width: 100%;
    height: auto;
}

.image p {
    margin-top: 5px;
    font-size: 16px;
    color: #555;
}

/* Botón de llamada a la acción */
.btn {
    display: inline-block;
    background: var(--main-orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #e68a00;
}

/* Botón WhatsApp personalizado */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    margin: 15px;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #e68a00;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    text-decoration: none;
}

/* Estilo para todas las imágenes */
img {
    border-radius: 22px;
    /* Increased border rounding for images */
}

/* Estilo para tarjetas */
.card {
    border-radius: 20px;
    /* Ensure rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow */
    overflow: hidden;
    /* Ensure content stays within the rounded corners */
    margin-bottom: 20px;
    /* Add spacing between cards */
}

/* Estilos generales para diferentes tamaños de pantalla */

/* Estilos para desktop */
@media (min-width: 1025px) {
    body {
        font-size: 1rem;
    }

    .container {
        max-width: 80%;
        margin: 30px auto;
        padding: 20px;
    }

    .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .col-md-4 {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }

    .card {
        margin-bottom: 15px;
    }





}

/* Estilos para iPad */
@media (max-width: 1024px) and (min-width: 769px) {
    body {
        background-image: url('/img/fondowebcosmicpack_ipad.png');
        background-attachment: fixed;

    }




    .container {
        margin: 40px auto 20px;
        padding: 15px;
        max-width: 90%;

    }

}

/* Estilos para iPhone */
@media (max-width: 768px) {
    body {
        background-image: url('/img/fondowebcosmicpack_iphone.png');
        font-size: 1rem;
    }

    .container {
        max-width: 95%;
        margin: 20px auto;
        padding: 10px;
    }

    .row {
        padding: 10px;
        display: flex;
    }

    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .card {
        margin-bottom: 10px;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;

    }

    .header img {
        max-width: 60px;
        /* Ajusta a tu gusto */
        margin-bottom: 0;
        margin-right: 1.5rem;
    }

    .header h1 {
        font-size: 1.6rem;
        padding: 1.2rem;
    }
.header h2 {
        font-size: 1.3rem;
        padding: 1.2rem;
    }

    .toggle-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 20px;
        background: white;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        padding: 20px;
        border-radius: 10px;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 999;
    }

 

    .nav-links.show {
        display: block;
        display: flex !important;
        /* <- fuerza visibilidad si hay conflictos */
        opacity: 1;
        transform: translateY(0);
    }


    .toggle-menu.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .toggle-menu.open span:nth-child(2) {
        opacity: 0;
    }

    .toggle-menu.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}