/* VARIABLES (Colores y estilo base) */
:root {
    --color-bg:#f8f5f2;
    --color-white:#fff;
    --color-primary:#c6a96d; /* dorado */
    --color-accent: #e8dfd6; /*beige suave */
    --color-text: #222222;
}

/* RESET */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* TIPOGRAFÍA */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* HEADER */
header {
    background-color: var(--color-primary);
    padding: 20px 40px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav h1 { /*Título LáserClinic*/
    font-family: Georgia, serif; /* Elegante */
    font-size: 24px;
    color: white;
}

nav ul { /* Menú de navegación */
    display: flex;
    gap: 40px;
      list-style: none;
}

nav a { /* Enlaces de navegación */
    text-decoration: none;
    color: var(--color-white);
    font-size: 14px;
}

nav a:hover { /* Efecto hover en enlaces */
    color: var(--color-text);
}

/* HERO */
#hero {
    position: relative;
    text-align: center;
    padding: 100px 20px;

    background-image: url("assets/fondohero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    z-index: 1;
}

/* capa oscura (más suave) */
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(50, 30, 10, 0.35); 
    z-index: 0;
}

/* contenido encima */
#hero > * {
    position: relative;
    z-index: 2;
}

#hero h2 {
    font-family: Georgia, serif;
    font-size: 42px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

#hero p {
    margin-bottom: 25px;
    font-size: 17px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);

}

/* SECCIONES */
section {
    scroll-margin-top: 70px;
  padding: 60px 20px; /* antes 60px 20px, era necesario juntar mas los textos y dejar menos espacios vacíos*/
    text-align: center;
    margin: 0 auto;
}

h2 {
    margin-bottom: 20px;
}

#benefits {
    background: var(--color-accent);
}

#benefits ul {
        list-style: none;
    padding: 0;
}

#benefits li {
    margin: 10px 0;
}

/* GRID (tratamientos) */
.grid {
    display: grid; /* ← ESTO FALTABA */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.grid div:hover {
    transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Sombra debajo de los tratamientos */
}

/* TARJETAS (tratamientos) */
.card {
    background: var(--color-white);
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.card p {
    font-weight: 500;
    margin-top: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* TARJETAS (tratamientos) */
.card {
    background: var(--color-white);
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* 👈 nuevo */

}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    filter: brightness(0.95);
}

.card p {
    font-weight: 500;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}


/* TESTIMONIOS */
#testimonial {
    background: var(--color-accent);
}

blockquote {
    font-style: italic;
    margin: 20px auto;
    max-width: 500px;
}

/* FORMULARIO */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto; /* se agrega el 0 */
        
}

input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
        border-radius: 5px;
}

button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
    letter-spacing: 0.2px
}

button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* FOOTER */
footer {
    background-color: #111;
    color: white;
    padding: 20px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    #hero h2 {
        font-size: 28px;
    }
}