/* MurtiDev 2026 - Estilos principales */
/* Color principal: #6ecde9 (azul ciano) */

:root {
    --primary-color: #6ecde9;
    --primary-dark: #5ab8d4;
    --bg-dark: #1a1a2e;
    --bg-light: #16213e;
    --text-light: #eaeaea;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.site-header {
    background-color: rgba(22, 33, 62, 0.95);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: contain;
    padding: 3px;
}

.logo:hover {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

nav a {
    color: var(--text-light);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a::first-letter {
    color: var(--primary-color);
    font-size: 1.2em;
}

nav a:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.9), rgba(26, 26, 46, 0.9));
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(110, 205, 233, 0.3);
    object-fit: contain;
    padding: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(110, 205, 233, 0.5);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Skills Section */
.skills-section {
    margin-bottom: 3rem;
}

.skills-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(110, 205, 233, 0.3);
    border-color: var(--primary-color);
}

.skill-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 1rem;
    background: white;
    padding: 10px;
}

.skill-svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    padding: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skill-svg svg {
    width: 100%;
    height: 100%;
    fill: var(--bg-dark);
}

.skill-card:hover .skill-svg {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(110, 205, 233, 0.5);
}

.skill-card h3 {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Posts Section */
.latest-posts {
    margin-top: 3rem;
}

.latest-posts h2,
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.item-list {
    list-style: none;
}

.item-list li {
    background: rgba(22, 33, 62, 0.9);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.item-list li:hover {
    transform: translateX(10px);
}

.item-list article h3 {
    margin-bottom: 0.5rem;
}

.item-list article h3 a {
    color: var(--text-light);
    font-size: 1.25rem;
}

.item-list article h3 a:hover {
    color: var(--primary-color);
}

.item-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.item-list article p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Post/Section Page */
.post {
    background: rgba(22, 33, 62, 0.95);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.post h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    text-align: center;
}

.post-date {
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

.post-content {
    line-height: 1.9;
}

.post-content h2 {
    color: var(--primary-color);
    margin: 2.5rem 0 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.post-content p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.post-content strong {
    color: var(--primary-color);
}

.post-content code {
    background: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: monospace;
}

.post-content pre {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1rem 0;
}

.post-content hr {
    border: none;
    border-top: 1px solid #444;
    margin: 2rem 0;
}

.post-content a {
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.post-content a:hover {
    text-decoration: underline;
}

/* About Page - Sobre mí */
.post-content > p > img {
    max-width: 80px;
    margin: 0 auto 1rem;
    display: block;
    border-radius: 50%;
    background: white;
    padding: 12px;
    box-shadow: 0 5px 20px rgba(110, 205, 233, 0.4);
    border: 2px solid var(--primary-color);
}

/* Skills cards in About */
.about-skills {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin: 3rem 0 !important;
    width: 100% !important;
}

.about-skill-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.7), rgba(15, 52, 96, 0.8)) !important;
    border-radius: 20px !important;
    padding: 2.5rem 2rem !important;
    text-align: center !important;
    border: 2px solid rgba(110, 205, 233, 0.3) !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.about-skill-card:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(110, 205, 233, 0.4) !important;
}

.about-skill-card img {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    margin: 0 auto 1.5rem !important;
    border-radius: 50% !important;
    background: white !important;
    padding: 15px !important;
    border: 3px solid var(--primary-color) !important;
    box-shadow: 0 8px 25px rgba(110, 205, 233, 0.4) !important;
    object-fit: contain !important;
}

.skill-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(110, 205, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--bg-dark);
}

.about-skill-card:hover .skill-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(110, 205, 233, 0.6);
}

.about-skill-card h3 {
    color: var(--primary-color) !important;
    font-size: 1.6rem !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

.about-skill-card p {
    color: var(--text-light) !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .about-skills {
        grid-template-columns: 1fr !important;
        max-width: 400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding-bottom: 45%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Contact Page */
.contact-page .container h1 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 50vw;
    width: 50vw;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .contact-form {
        max-width: 100%;
        width: 100%;
    }
}

.contact-form p {
    margin-bottom: 1.5rem;
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    padding: 1rem 1.2rem;
    border: 2px solid #444;
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(110, 205, 233, 0.3);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form button[type="submit"],
.contact-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-dark);
    border: none;
    padding: 1.2rem 4rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(110, 205, 233, 0.4);
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1rem;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 2px solid #28a745;
}

.form-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 2px solid #dc3545;
}

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.tag-list li a {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.tag-list li a:hover {
    background: var(--primary-dark);
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%),
                linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    padding: 3rem 2rem;
    margin-top: auto;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-contact {
    text-align: left;
}

.footer-contact p:first-child {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--text-light);
    font-size: 1rem;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.social-links {
    text-align: center;
}

.social-links > p {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(110, 205, 233, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.social-icons a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(110, 205, 233, 0.4);
}

.copyright {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(110, 205, 233, 0.2);
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 1rem;
    }

    .post {
        padding: 1.5rem;
    }

    .post h1 {
        font-size: 1.8rem;
    }

    .video-container {
        padding-bottom: 56.25%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-contact,
    .social-links {
        text-align: center;
        width: 100%;
    }

    .social-links > p {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        gap: 0.3rem;
    }

    nav a {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
}
