/* ==================== VARIABLES Y RESETEO ==================== */
:root {
    --bg-main: #f2f3f8;
    --blue-light: #008be3;
    --blue-dark: #1a0088;
    --text-color: #2b2b2b;
    --text-muted: #555555;
    --card-border-radius: 16px;
    --transition-speed: 0.25s;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 12px 30px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    color: var(--text-color);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== CONTENEDOR PRINCIPAL CON SCROLL-SNAP DESKTOP ==================== */
.container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--bg-main);
    scroll-behavior: smooth;
}

/* Habilitar scroll snap en pantallas medianas / grandes */
@media (min-width: 901px) and (min-height: 650px) {
    .container {
        scroll-snap-type: y mandatory;
    }

    .section {
        height: 100vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ==================== 1. SECCIÓN HERO ==================== */
.header {
    background: linear-gradient(135deg, var(--blue-light) 0%, #0076c4 100%);
    color: white;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 5;
    flex-shrink: 0;
}

.header-brand {
    text-align: right;
}

.header-brand h1 {
    font-size: clamp(1.8rem, 3.8vw, 3.2rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.header-brand h1 span {
    font-weight: 700;
}

.header-tagline {
    font-size: clamp(0.75rem, 0.9vw, 0.95rem);
    opacity: 0.9;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.hero-wrapper {
    position: relative;
    background-color: var(--bg-main);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.hero-section {
    position: relative;
    background-color: var(--blue-dark);
    color: white;
    padding: 4vw 6vw 4vw 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    height: 100%;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1.2rem;
    width: fit-content;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: clamp(2rem, 3.6vw, 3.8rem); 
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    opacity: 0.88;
    max-width: 580px;
    line-height: 1.6;
    font-weight: 300;
}

.nav-menu {
    position: absolute;
    right: 4vw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2vh;
    width: 35vw;
    max-width: 420px;
    min-width: 220px;
}

.nav-btn {
    background: white;
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: var(--card-border-radius);
    font-size: clamp(0.78rem, 0.9vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e0e4ec;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.nav-btn i {
    color: var(--blue-light);
    font-size: 1.1em;
    transition: color var(--transition-speed) ease;
}

.nav-btn:hover {
    background-color: var(--blue-dark);
    color: white;
    border-color: var(--blue-dark);
    transform: translateX(-8px);
    box-shadow: var(--shadow-medium);
}

.nav-btn:hover i {
    color: white;
}

.nav-btn:nth-child(1) { width: 60%; }
.nav-btn:nth-child(2) { width: 73%; }
.nav-btn:nth-child(3) { width: 86%; }
.nav-btn:nth-child(4) { width: 100%; }

@media (min-width: 901px) {
    .hero-section {
        clip-path: polygon(0 0, 68% 0, 48% 100%, 0 100%);
        padding-right: 15vw;
    }
}

/* ==================== 2. SECCIÓN SOBRE MÍ ==================== */
.about-section {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-main);
}

.section-tag {
    color: var(--blue-light);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.about-text {
    flex: 1;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--blue-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    color: var(--text-color);
    margin-bottom: 1.1rem;
    text-align: justify;
    line-height: 1.6;
}

.about-sidebar {
    background-color: var(--blue-light);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-shrink: 0;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-img {
    width: 100%;
    max-width: 240px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: var(--shadow-medium);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-status {
    font-size: 0.75rem;
    color: white;
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-status i {
    color: #4caf50;
    font-size: 0.8em;
}

.sidebar-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.sidebar-btn {
    width: 100%;
    max-width: 260px;
    background: white;
    color: var(--blue-light);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.sidebar-btn i {
    font-size: 1.1em;
}

.sidebar-btn:hover {
    transform: translateY(-3px);
    background-color: var(--blue-dark);
    color: white;
    box-shadow: var(--shadow-medium);
}

@media (min-width: 901px) {
    .about-section {
        flex-direction: row;
    }

    .about-sidebar {
        width: 320px;
        min-width: 280px;
        height: 100%;
    }
}

/* ==================== 3. SECCIÓN APTITUDES ==================== */
.aptitudes-section {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-main);
}

.aptitudes-banner {
    background-color: var(--blue-dark);
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    flex-shrink: 0;
}

.section-tag-light {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    display: block;
    margin-bottom: 6px;
}

.aptitudes-banner h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 500;
}

.aptitudes-list {
    background-color: var(--bg-main);
    padding: 2rem clamp(1.5rem, 5vw, 6rem);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 12px;
}

.aptitude-item {
    display: grid;
    grid-template-columns: 320px 1fr;
    padding: 1.2rem 1.5rem;
    background: white;
    border-radius: var(--card-border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
    align-items: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.aptitude-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.aptitude-title {
    color: var(--blue-light);
    font-weight: 700;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    display: flex;
    align-items: center;
    gap: 12px;
}

.aptitude-title i {
    font-size: 1.25em;
    color: var(--blue-dark);
}

.aptitude-desc {
    font-size: clamp(0.88rem, 1vw, 1rem);
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==================== 4. SECCIÓN CONTACTO ==================== */
.contact-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3vw;
    padding: 3vw 5vw;
    background-color: #eef0f6;
    min-height: 100vh;
    width: 100%;
}

.quote-card {
    background: linear-gradient(145deg, #008be3 0%, #1a0088 100%);
    color: white;
    padding: clamp(2rem, 3.5vw, 3rem);
    border-radius: 20px;
    flex: 1;
    max-width: 480px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-medium);
}

.quote-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.quote-title {
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.quote-subtitle {
    font-size: clamp(0.88rem, 1vw, 0.98rem);
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 300;
}

.quote-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.info-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    opacity: 0.9;
}

.info-item a {
    color: white;
    transition: opacity var(--transition-speed);
}

.info-item a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    opacity: 0.5;
}

.contact-form {
    background: white;
    padding: clamp(2rem, 3.5vw, 2.5rem);
    border-radius: 20px;
    flex: 1;
    max-width: 500px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-medium);
    border: 1px solid #e2e8f0;
}

.form-header h3 {
    font-size: 1.3rem;
    color: var(--blue-dark);
    margin-bottom: 4px;
}

.form-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.form-group.flex-grow {
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group label {
    font-size: 0.82rem;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background-color: #f9fafb;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--blue-light);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 139, 227, 0.15);
}

.form-group textarea {
    height: 100%;
    min-height: 100px;
    resize: none;
}

.submit-btn {
    background-color: var(--blue-dark);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.submit-btn:hover {
    background-color: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ==================== COMPORTAMIENTO PARA PANTALLAS ANGOSTAS / MÓVILES ==================== */
@media (max-width: 900px) {
    .container {
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none !important; /* Deshabilita el bloqueo de scroll */
    }

    .section {
        height: auto !important;
        min-height: auto;
        scroll-snap-align: none !important;
        padding-bottom: 30px;
    }

    .header {
        justify-content: center;
        text-align: center;
        padding: 24px 20px;
    }

    .header-brand {
        text-align: center;
    }

    .hero-wrapper {
        flex-direction: column;
        background-color: var(--bg-main);
    }

    .hero-section {
        background-color: var(--blue-dark);
        color: white;
        width: 100%;
        padding: 40px 20px;
        text-align: center;
        align-items: center;
        clip-path: none !important;
    }

    .hero-description {
        text-align: center;
    }

    .nav-menu {
        position: static;
        width: 100%;
        padding: 30px 20px 10px 20px;
        background-color: var(--bg-main);
        align-items: center;
        gap: 12px;
    }

    .nav-btn,
    .nav-btn:nth-child(1),
    .nav-btn:nth-child(2),
    .nav-btn:nth-child(3),
    .nav-btn:nth-child(4) {
        width: 100% !important;
        max-width: 360px;
    }

    .nav-btn:hover {
        transform: translateY(-3px);
    }

    .about-section {
        min-height: auto;
    }

    .about-text {
        padding: 30px 20px;
    }

    .about-sidebar {
        padding: 30px 20px;
        width: 100%;
    }

    .aptitudes-section {
        min-height: auto;
    }

    .aptitudes-list {
        padding: 20px;
    }

    .aptitude-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .contact-section {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 30px 20px;
        gap: 25px;
    }

    .quote-card, 
    .contact-form {
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Ajuste adicional para pantallas con poca altura vertical */
@media (max-height: 650px) {
    .container {
        scroll-snap-type: none !important;
        height: auto;
    }
    .section {
        height: auto !important;
        scroll-snap-align: none !important;
    }
}