:root {
 --color-animation: #444;
--color-secondary: #333;
--color-accent: #6b21a8;
--color-text: #334155;
--color-bg: #F8FAFC;
--radius: 8px;
--shadow: 0 2px 8px rgba(0,0,0,0.1);
--font-main : "DM Sans", "Segoe UI", Arial, sans-serif;
--font-titulo: "Playwrite DK Uloopet Guides", cursive;
}

html {
  scroll-behavior: smooth;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color :var(--color-text);
    background: var(--color-bg);
}

h1 { font-size: 2.5rem; font-family: var(--font-main); }
h2 { font-size: 1.8rem; font-family: var(--font-main); }
h3 { font-size: 1.3rem; }


header{
    background: linear-gradient(135deg, #1a1a2e, #6b21a8);
    color: white;
    padding: 2rem 4rem;
    height: 100px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .logo h1{
    font-size: 1.5rem;
    color: white;
}

header .logo p{
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    text-align: left;
}

nav{
    display: flex;
    gap: 0.5rem;
}

nav a {
    color: rgba(255,255,255,0.80);
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: var(--radius);
    transition: background 0.25s ease, color 0.25s ease;

}

nav a:hover{
    background: #4a0080;
    color: white;
}
footer{
    background-color: #444;
    color: white;
    padding: 20px;
    text-align: center;
}
main{
    padding: 20px;
}
section{
    margin-bottom: 30px;
}
h2{
    color:#333;
    text-align: center;
}
p{
    margin-bottom: 20px;
    text-align: center;
}
ul{
    width: fit-content;
    margin: 0 auto;

}

img{
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}


#Contacto {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}
#Contacto{
    text-align: center;
    margin-bottom: 1.5rem;
}
form{
    display: flex;
    flex-direction: column ;
    gap: 0.5rem;
}
label{
    font-weight: bold;
}

input, textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
input, textarea, select{
    width: 100%;
}

textarea{
    height: 120px;
    resize: vertical;
}
button{
    margin-top: 0.5rem;
    padding: 0.7rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
button :hover{
    background-color: #555;
}

.redes {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.redes a {
    color: #333;
    font-size: 2rem;
    text-decoration: none;
}

.redes a:hover {
    color: #888;
}

input:focus, textarea:focus, select:focus {
    border: 2px solid blue;
    box-shadow: 0 0 5px rgba(0, 0, 255, 0.3);
    outline: none;
}

input:valid, textarea:valid, select:valid {
    border: 2px solid green;
    background-color: #f0fff0;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border: 2px solid red;
    background-color: #fef2f2;
}

.Tarjetas{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.Tarjeta{
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.Tarjeta:hover{
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.Tarjeta h3 {
    margin-bottom: 0.75rem;
    color: var(--color-secondary);
}

.Tarjeta p {
    color: var(--color-text);
    text-align: left;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    background: linear-gradient(135deg,#1a1a2e,#6b21a8 );
    color: white;
    text-align: center;
}

.hero-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: white;
}

.hero-titulo {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.80);
    text-align: center;
    margin: 0;
}

.hero-btn{
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-btn:hover{
    background: #9333ea;
    transform: translateY(-2px);
}

footer {
    background: linear-gradient(135deg, #1a1a2e, #6b21a8);
    color: rgba(255,255,255,0.75);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

footer .redes a {
    color: rgba(255,255,255,0.75);
    font-size: 1.5rem;
    transition: color 0.25s ease;
}

footer .redes a:hover {
    color: var(--color-accent);
}

.layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        "header header"
        "sidebar main"
        "footer footer";
    min-height: 100vh;
}

header {grid-area: header; }
.sidebar{grid-area: sidebar;}
main{grid-area: main;}
footer{grid-area: footer;}

.sidebar{
    background: #f1f5f9;
    padding: 2rem 1rem;
    border-right: 1px solid #e2e8f0;
}

.sidebar h3{
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: auto;
    margin: 0;
}

.sidebar ul li a  {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.sidebar ul li a:hover {
    color: #6b21a8;
}

.layout {
    grid-template-columns: 1fr;
    grid-template-areas: 
    "header"
    "main"
    "footer"
}

.sidebar {
    display: none;
}

header {
    padding: 0 1rem;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
}

nav {
    flex-wrap: wrap;
}

main {
    padding: 1rem;
}

@media (min-width: 768px) {
    .layout {
        grid-template-columns: 220px 1fr;
        grid-template-areas: 
        "header header"
        "sidebar main"
        "footer footer";

        .sidebar {
            display :block;
        }

        header {
            flex-wrap: wrap;
            height: auto;
            padding: 1rem 2rem;
        }
    }


    .sidebar {
    display: block;
    }

    header {
    flex-direction: row;
    height: 64px;
    padding: 0  2rem;
    }
}

@media (min-width: 1024px) {
    .layout {
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (min-width: 1440px) {
    .layout {
        max-width: 1600px;
    }
}