/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066CC;
    --primary-dark: #004C99;
    --primary-light: #E6F2FF;
    --secondary-color: #00B4D8;
    --text-dark: #1a1a1a;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.nav-link.btn-primary {
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

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

.nav-link.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.title-line-1 {
    color: var(--text-dark);
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-full {
    width: 100%;
}


.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    border: 8px solid white;
}

.circular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-decoration {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    border-radius: 50px;
    z-index: -1;
    opacity: 0.4;
    transform: rotate(-15deg);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
    pointer-events: auto;
    transition: var(--transition);
    z-index: 10;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.card-content p {
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
    margin: 0;
}

.card-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: -15%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Servicios Section */
.servicios {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.servicio-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.servicio-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    grid-column: span 2;
}

.servicio-card.featured .servicio-icon {
    background: rgba(255, 255, 255, 0.2);
}

.servicio-card.featured h3,
.servicio-card.featured p {
    color: white;
}

.servicio-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.servicio-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.servicio-icon img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.servicio-card.featured .servicio-icon svg {
    color: white;
}

.servicio-card.featured .servicio-icon img {
    filter: brightness(0) invert(1);
}

.servicio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.servicio-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Sobre Mí Section */
.sobre-mi {
    padding: 80px 0;
    background: var(--bg-light);
}

.sobre-mi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-mi-image {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.sobre-mi-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sobre-mi-content .section-badge {
    margin-bottom: 1rem;
}

.sobre-mi-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.sobre-mi-text {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.sobre-mi-list {
    list-style: none;
}

.sobre-mi-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 1.125rem;
    color: var(--text-dark);
}

.sobre-mi-list svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Contacto Section */
.contacto {
    padding: 80px 0;
    background: var(--bg-white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacto-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.contacto-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacto-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contacto-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contacto-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contacto-item p {
    color: var(--text-medium);
    font-size: 0.875rem;
}

.contacto-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
    border: 2px solid var(--primary-color);
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.025em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: rgba(0, 102, 204, 0.08);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.25);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-dark);
    background: rgba(0, 102, 204, 0.12);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.form-group textarea {
    resize: vertical;
    border-radius: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-light) 100%);
    color: var(--text-dark);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.footer-section p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-medium);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .servicio-card.featured {
        grid-column: span 1;
    }

    .sobre-mi-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .image-wrapper {
        width: 350px;
        height: 350px;
    }

    .circular-image {
        width: 280px;
        height: 280px;
    }

    .image-decoration {
        width: 200px;
        height: 200px;
        top: 30px;
        right: 30px;
        opacity: 0.2;
        z-index: -2;
    }

    .floating-card {
        padding: 1rem;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }

    .card-content p {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .image-wrapper {
        width: 280px;
        height: 280px;
    }

    .circular-image {
        width: 220px;
        height: 220px;
    }

    .image-decoration {
        width: 150px;
        height: 150px;
        top: 20px;
        right: 20px;
        opacity: 0.15;
        z-index: -3;
    }

    .floating-card {
        padding: 0.75rem;
    }

    .card-content h3 {
        font-size: 1.25rem;
    }

    .card-content p {
        font-size: 0.7rem;
    }

    .card-1 {
        top: 10%;
        left: -5%;
    }

    .card-2 {
        top: 50%;
        right: -10%;
    }

    .card-3 {
        bottom: 5%;
        left: 5%;
    }

    .contacto-form-wrapper {
        padding: 1.5rem;
        box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
        border: 2px solid var(--primary-color);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        background: rgba(0, 102, 204, 0.1);
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

