:root {
    --primary-color: #f67280;
    --primary-color-hover: #e0606d;
    --secondary-color: #355c7d;
    --text-color: #555555;
    --heading-color: #222222;
    --white: #ffffff;
    --light-bg: #fdf2f2;
    --main-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --hero-bg-url: url('assets/autismo-niños.jpg');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--main-font);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    font-weight: 700;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.sub-title {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-yt {
    background-color: #ff0000;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-yt:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.btn-secondary-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 12px 30px;
}

.btn-secondary-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-download {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.9rem;
}

header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 50px;
}

header .nav-links {
    display: flex;
    gap: 25px;
}

header .nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #000;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hero-bg-url);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: var(--white);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.about, .youtube-section, .recursos-section, .services {
    padding: 100px 0;
}

.about .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image-container {
    flex: 1;
    position: relative;
}

.about-image {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.decor {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

.decor-1 {
    width: 120px;
    height: 120px;
    background-color: #a8dadc;
    bottom: -40px;
    left: -40px;
}

.decor-2 {
    width: 80px;
    height: 80px;
    background-color: #ffe082;
    top: 10%;
    right: -30px;
}

.about-content {
    flex: 1;
}

.youtube-section, .recursos-section {
    background-color: var(--light-bg);
}

.recursos-section {
    background-color: var(--white);
}

.youtube-section h2, .recursos-section h2, .services h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8rem;
}

.youtube-grid, .recursos-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.youtube-card, .recurso-card, .service-item {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.recurso-card, .service-item {
    padding: 40px;
    text-align: center;
}

.youtube-card iframe {
    width: 100%;
    height: 220px;
}

.youtube-card h3 {
    padding: 20px;
}

.recurso-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.center-btn {
    text-align: center;
    margin-top: 50px;
}

.services {
    background-color: var(--secondary-color);
    color: var(--white);
}

.services h2, .services .sub-title {
    color: var(--white);
    text-align: center;
}

.service-item {
    background-color: rgba(255,255,255,0.08);
    color: var(--white);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-item h4 {
    color: var(--white);
    margin-bottom: 15px;
}

footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 25px;
}

.footer-socials a {
    font-size: 1.8rem;
    color: var(--white);
}

.footer-socials a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; }
    header .nav-links { display: none; }
    header .container { justify-content: center; }
    .about .container { flex-direction: column; text-align: center; }
    .youtube-grid, .recursos-grid, .services-grid { grid-template-columns: 1fr; }
    .about, .youtube-section, .recursos-section, .services { padding: 60px 0; }
    .decor { display: none; }
}