/* ESTILOS PRINCIPALES - CATORCE VIDAS */

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #f5f3f0;
    --color-accent: #d4af37;
    --color-text: #333333;
    --color-light: #fafaf8;
    --color-border: #e8e6e3;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

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

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    z-index: 1001;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* HERO */
.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--color-light) 0%, #faf8f6 100%);
}

.hero-title {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
}

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

/* ABOUT */
.about {
    padding: 4rem 2rem;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: #555;
}

.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skills-list li {
    padding-left: 1.5rem;
    position: relative;
}

.skills-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* SERVICES */
.services {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--color-light) 0%, #faf8f6 100%);
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent);
}

.service-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 1.5rem;
}

.service-header h3 {
    margin: 0;
    color: var(--color-primary);
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #555;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.services-cta {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    border: 2px dashed var(--color-accent);
}

/* FRAMEWORK */
.framework {
    padding: 4rem 2rem;
    background-color: white;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.framework-card {
    background-color: #f9f7f4;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.framework-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background-color: white;
}

.framework-icon {
    margin-bottom: 1.5rem;
}

.framework-icon img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: block;
}

.framework-card h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.framework-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

/* PORTFOLIO */
.portfolio {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--color-light) 0%, #faf8f6 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent);
}

.portfolio-card h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.portfolio-year {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-services {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: var(--color-primary);
}

.modal-content h2 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.modal-year {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 2rem;
}

.modal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.modal-content ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

.modal-content ul li {
    margin-bottom: 0.5rem;
}

/* CONTACT */
.contact {
    padding: 4rem 2rem;
    background-color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-form {
    background-color: #f9f7f4;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
}

.form-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
    text-align: center;
}

.contact-info {
    background-color: #f9f7f4;
    padding: 2rem;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.channel {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.channel:last-child {
    border-bottom: none;
}

.channel h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.channel p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

.link {
    color: var(--color-accent);
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

/* FOOTER */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #999;
}

/* RESPONSIVE - TABLET */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-content {
        margin: 1.5rem;
    }
}

/* RESPONSIVE - MÓVIL */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        left: 0;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        display: none;
        gap: 0;
        list-style: none;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border: none;
    }

    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
        margin-top: 70px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .framework-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 1.5rem;
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 2rem 1.5rem;
    }

    .services {
        padding: 2rem 1.5rem;
    }

    .about {
        padding: 2rem 1.5rem;
    }

    .portfolio {
        padding: 2rem 1.5rem;
    }

    .framework {
        padding: 2rem 1.5rem;
    }

    .footer {
        padding: 2rem 1.5rem;
    }
}
