/* Reset básico mejorado */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --bg-color: #f5f7fa;
    --card-bg: white;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --bigshadow: 0 100px 300px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container.container-big {
    max-width: 1800px;
}

/* Header */
.header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav {
    display: flex;
    justify-content: center;
}

.nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav a,
.nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.nav a {
    color: white;
}

.nav a:hover,
.nav a.active {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Main Content */
.main {
    padding: 2rem 0;
    flex: 1;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #000000;
    min-height: 3.5rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #000000;
}

.profile-intro {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.profile-text {
    font-size: 1.1rem;
    flex: 2;
}

.profile-highlights {
    flex: 1;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.profile-highlights h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.highlight-list {
    list-style: none;
}

.highlight-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.highlight-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    text-align: center;
    min-width: 180px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, var(--primary-color) 100%);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.center-button {
    text-align: center;
    margin: 2rem 0;
}

/* Features / Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
}

/* About Page Sections */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-text {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
}

.about-text h2 {
    color: black;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;

}

.skills-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skills-section h2 {
    color: black;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h3 {
    color: green;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.skill-category h3:before {
    content: "▸";
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.journey-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.journey-section h2 {
    color: black;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.timeline-content h3 {
    margin-top: 0;
    color: black;
}

.timeline-item:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd):before {
    right: -10px;
}

.timeline-item:nth-child(even):before {
    left: -10px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-heart {
    color: #e74c3c;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Text styles */
.slogan {
    font-style: italic;           
    font-family: "Georgia", serif; 
    color: #00b894;                
    font-size: 1.1rem;             
    margin-top: 10px;              
}

.slogantwo {
    font-style: italic;           
    font-family: "Georgia", serif; 
    font-size: 1.5rem;             
    margin-top: 10px;      
    justify-self: center;    
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: green;                   
    background-color: #ececec;
}

/* Multimedia Content */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img,
.project-card video {
    max-width: 100%; 
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.project-card p {
    font-size: 1.1rem;
    color: #555;
}

/* ============================= */
/*          DARK THEME           */
/* ============================= */
body.dark-mode {
    --text-color: #e0e0e0;
    --bg-color: #1e1e1e;
    --card-bg: #2a2a2a;
    --secondary-color: #111;
    --shadow: 0 5px 15px rgba(0,0,0,0.4);
}

body.dark-mode .profile-highlights,
body.dark-mode .timeline-content,
body.dark-mode .skill-item {
    background: #333;
}

body.dark-mode .hero p {
    color: #ffffff;
}

body.dark-mode .project-card {
    background-color: #363636;
}

body.dark-mode .feature-card p,
body.dark-mode .project-card p {
    color: #bbb;
}

body.dark-mode .project-card h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

body.dark-mode .hero h2 {
    color: #ffffff;
}

body.dark-mode .feature-card h3 {
    color: #ffffff;
}

body.dark-mode .footer {
    color: #aaa;
}

body.dark-mode .skills-section h2 {
    color: #ffffff;
}

body.dark-mode .journey-section h2 {
    color: #ffffff;
}

body.dark-mode .timeline-content h3 {
    color: #ffffff;
}

body.dark-mode .about-text h2 {
    color: #ffffff;
}

body.dark-mode .skill-category h3 {
    color: green;
}

body.dark-mode .slogantwo {
    color: green;                   
    background-color: #363636;
}

body.dark-mode .profile-highlights h3 {
    color: #ffffff;
}

body.dark-mode .slogan {
    color: green;
}

/* Theme Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 35px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 35px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    height: 27px;
    width: 27px;
    left: 4px;
    bottom: 4px;
    background: linear-gradient(180deg, #ffd000, #d8b000);
    border-radius: 50%;
    transition: transform 0.3s;
}

.theme-switch input:checked + .slider {
    background-color: #797979;
}

.theme-switch input:checked + .slider::before {
    transform: translateX(35px);
    background: linear-gradient(180deg, #b4b4b4, #8d8d8d);
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        margin: 0;
    }

    .menu-toggle {
        display: block;
    }

    .header .theme-switch {
        transform: scale(0.7); /* Reduce el tamaño al 80% */
        margin-right: -1.5rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 3.2rem;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.699);
        padding: 1rem;
        flex-direction: column;
        z-index: 99;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .nav.active {
        display: flex;
    }

    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav li {
        width: 100%;
    }

    .nav a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,.2);
    }

    .nav a:last-child {
        border-bottom: none;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .profile-intro {
        flex-direction: column;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 50px;
    }
    
    .timeline-item:before {
        left: 10px;
    }
    
    .timeline-item:nth-child(odd):before,
    .timeline-item:nth-child(even):before {
        left: 10px;
    }

    .theme-switch {
        margin-left: auto;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .profile-text {
        font-size: 1rem;
    }
    
    .btn {
        min-width: auto;
        padding: 0.8rem 1.5rem;
    }
}