/* Reset & Base Styles */
:root {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0;
    letter-spacing: 1px;
}

/* Navigation */
nav {
    background-color: var(--surface-color);
    padding: 1rem 0;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 90;
}

nav a {
    color: var(--text-muted);
    font-weight: 600;
    margin: 0 1.5rem;
    font-size: 0.95rem;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Sections */
section {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.content-wrapper {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Alternating Layout for visual interest */
section:nth-child(even) .content-wrapper {
    flex-direction: row-reverse;
}

.image-estilo1 {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.text-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
}

.text-content .author {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--gradient-main);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Info Sections (Contacto, etc) */
.info-section {
    text-align: center;
    background: linear-gradient(180deg, var(--surface-color) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.info-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.info-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {

    .content-wrapper,
    section:nth-child(even) .content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .image-estilo1 {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .text-content p {
        text-align: left;
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        margin: 0;
    }

    header h1 {
        font-size: 1.2rem;
    }
}