/* Pertenecen a todas las páginas */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffe4ec;
    padding-top: 70px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

html, body {
    height: 100%;
}

/* HEADER */
header {
    position: fixed; 
    top: 0;
    width: 100%;
    height: 70px;
    background-color: palevioletred;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
}

/* TEXTO LUMISKIN HEADER */
.logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* NAV */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: purple;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: white;
    font-weight: bold;
}

/* FOOTER */
footer {
    background-color: palevioletred;
    color: white;
    font-weight: bold;
    font-size: 20px;
    padding: 10px;
    text-align: center;
}

/* SECTIONS */
section {
    position: relative;
}

section::after {
    content: "";
    display: block;
    width: 60%;
    margin: 40px auto 0;
    border-bottom: 2px dashed palevioletred;
}

section:last-of-type::after {
    display: none;
}

/* INDEX */

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.hero h2 {
    font-size: 90px;
    color: white;
    text-shadow: 0px 5px 20px rgba(0,0,0,0.5);
    letter-spacing: 5px;
}

.products {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    width: 260px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px;
    font-size: 18px;
    color: #333;
}

.product-card-link {
    text-decoration: none;
    color: inherit; 
    display: block;
}

/* MAQUILLAJE Y SKINCARE (AMBAS LO TIENEN) */

.makeup-section {
    padding: 20px 20px 60px;
    text-align: center;
}

.section-title {
    font-size: 40px;
    padding: 20px;
    margin: 20px;
    margin-top: 0;
}

.makeup-products {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.makeup-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    width: 250px;
    padding-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.makeup-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.makeup-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.makeup-card h3 {
    margin: 10px 0;
}

.makeup-card p {
    font-size: 14px;
    padding: 0 10px;
}

/* SOLO PARA MAQUILLAJE */
.tips {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: justify;
}

.tips h3 {
    margin-bottom: 15px;
    text-align: center;
}

.video-card {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card img {
    width: 350px;
    height: 200px;
    object-fit: cover;
    display: block;
}

.video-card:hover {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 10px 18px;
    border-radius: 50%;
}

/* SOLO PARA SKINCARE */
.skincare-routine {
    padding: 60px 20px;
}

.routine-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.routine-text {
    max-width: 400px;
}

.routine-text h3 {
    margin-bottom: 20px;
    font-size: 28px;
}

.routine-text ol {
    text-align: left;
    line-height: 2;
    font-size: 18px;
}

.routine-img img {
    width: 400px;
    border-radius: 15px;
}

/* SOBRE NOSOTROS */

.about-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
    margin: 15px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    max-width: 500px;
}

.about-text h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
}

.services-table {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 500px;
}

.services-table h2 {
    text-align: center;
    margin-bottom: 20px;
    color: palevioletred;
}

.services-table table {
    width: 100%;
    border-collapse: collapse;
}

.services-table th {
    background-color: palevioletred;
    color: white;
    padding: 12px;
}

.services-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.services-table tr:hover {
    background-color: #ffe4ec;
}

/* PÁGINA: CONTACTO */

.contact-section {
    margin-top: 90px;
    padding: 20px 20px 60px;
    background-color: transparent;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center; 
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-form h2 {
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.contact-form button {
    background-color: palevioletred;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: purple;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-box,
.map-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.info-box h3,
.map-box h3 {
    margin-bottom: 15px;
}

.map-box iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 10px;
}

.contact-form,
.info-box,
.map-box {
    text-align: center;
}

.contact-form h2,
.info-box h3,
.map-box h3 {
    color: palevioletred;
}

.contact-form input,
.contact-form textarea {
    text-align: center;
}

/* OTROS */

:target {
    border: 2px solid palevioletred;
    scroll-margin-top: 100px; 
}

/* MEDIA QUERIES PARA MÓVILES */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto; 
        padding: 10px 0;
        gap: 5px;
    }

    nav {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1); 
        padding-top: 8px;
    }

    nav ul {
        gap: 12px;
        justify-content: center;
    }

    nav a {
        font-size: 11px;
    }

    body {
        padding-top: 100px;
    }

    .hero {
        padding-top: 20px;
        text-align: center;
        gap: 30px;
    }

    .hero h2 {
        font-size: 40px;
        letter-spacing: 1px;
        line-height: 1.2;
        margin: 0 auto;
        width: 100%;
        display: block;
        white-space: nowrap;
    }

    .about-container {
        padding: 0 10px;
    }

    .services-table {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 5px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .services-table table {
        font-size: 12px;
        min-width: 300px;
    }

    .services-table th, .services-table td {
        padding: 8px 4px;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 5px;
    }

    .routine-container, 
    .contact-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

    .routine-img img, 
    .about-text, 
    .contact-form,
    .info-box,
    .map-box {
        width: 100% !important;
        max-width: 100%;
        height: auto;
    }

    .contact-section {
        margin-top: 0;
        padding-top: 10px;
        min-height: auto;
    }

    .video-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .video-card {
        width: 90%; 
        max-width: 350px; 
    }

    .video-card img {
        width: 100% !important; 
        height: auto; 
    }

    section {
        padding-bottom: 25px;
    }

    .product-card, .makeup-card {
        width: 100%;
        max-width: 320px;
    }
}