@charset "utf-8";

/* CSS Document */

/* ================================
   RESET & BASE STYLES
   ================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    overflow-x: hidden;
    user-select: auto;
}

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

/* ================================
   NAVIGATION
   ================================ */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 2px solid #000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    color: #000;
    text-decoration: none;
}

.logo::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #000;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #000;
    margin: 3px 0;
    transition: all 0.3s ease;
}

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

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

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

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 10px;
}

.nav-links a.active {
    font-weight: 700;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 100px;
    height: 1px;
    background: #000;
    animation: slideRight 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 1px;
    background: #000;
    animation: slideLeft 8s ease-in-out infinite;
}

.hero-decoration {
    position: absolute;
    top: 30%;
    right: 15%;
    width: 40px;
    height: 40px;
    border: 2px solid #ebe9e9;
    transform: rotate(45deg);
    animation: rotateSquare 10s linear infinite;
}

/* Animated Objects */
.floating-objects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid #000;
    border-radius: 50%;
    opacity: 0.2;
    animation: floatUp 18s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
    left: 10%;
    bottom: -100px;
    animation-delay: 0s;
    width: 60px;
    height: 60px;
}

.floating-circle:nth-child(2) {
    right: 15%;
    bottom: -100px;
    animation-delay: 8s;
    width: 100px;
    height: 100px;
}

.floating-square {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #000;
    opacity: 0.08;
    animation: floatDiagonal 25s linear infinite;
    top: 40%;
    left: -50px;
}

.floating-line {
    position: absolute;
    height: 1px;
    background: #000;
    opacity: 0.15;
    animation: expandContract 10s ease-in-out infinite;
    width: 200px;
    top: 65%;
    right: 10%;
    transform-origin: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 100;
    letter-spacing: -3px;
    margin-bottom: 30px;
    line-height: 0.9;
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #000;
}

.hero .subtitle {
    font-size: 16px;
    color: #000;
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 2px solid #000;
    position: relative;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
}

.cta-button:hover {
    background: transparent;
    color: #000;
    transform: translate(-5px, -5px);
}

/* ================================
   ABOUT SECTION
   ================================ */

.about {
    padding: 120px 20px;
    background: #fff;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
}

.image-hover {
    width: 320px;
    height: 320px;
    float: left;
    margin: 0 15px 0 0;
    background-image: url('Images/betoruizalonso-20241012-bw.jpg');
    background-size: cover;
    transition: background-image 0.5s ease-in-out;
}

.image-hover:hover {
    background-image: url('Images/betoruizalonso-20241012-color.jpg');
    transform: translate(-5px, -5px);
    transition: all 0.3s ease;
}

.about-section {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    margin-bottom: 100px;
    align-items: start;
}

.about-header {
    position: relative;
}

.about-content {
    padding-top: 40px;
}

.lead-text {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Markets Section */
.markets {
    margin-bottom: 100px;
}

.markets-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.markets-header h2 {
    font-size: 48px;
    font-weight: 100;
    letter-spacing: -1px;
}

.black-square {
    width: 15px;
    height: 15px;
    background: #000;
}

.markets-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.about-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.point-item {
    position: relative;
    padding-left: 20px;
}

.point-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 10px;
    font-weight: 700;
}

.point-item h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.point-item p {
    font-size: 14px;
    text-align: justify;
    color: #666;
    line-height: 1.6;
}

/* ================================
   SERVICES SECTION
   ================================ */

.services {
    padding: 120px 20px;
    background: #fafafa;
    position: relative;
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.services-header h2 {
    font-size: 56px;
    font-weight: 100;
    letter-spacing: -1px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.services-header h2::before,
.services-header h2::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    background: #000;
    top: 50%;
    transform: translateY(-50%);
}

.services-header h2::before {
    left: -50px;
}

.services-header h2::after {
    right: -50px;
}

.services-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.asymmetric-grid.reverse {
    grid-template-columns: 1fr 2fr;
}

.service-large * {
    position: relative;
    z-index: 1;
}

.service-large {
    background: #fff;
    padding: 60px;
    border-left: 4px solid #000;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.service-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.02);
    transition: left 0.6s ease;
    pointer-events: none;
}

.service-large:hover::before {
    left: 0;
}

.service-large::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 40px;
    width: 15px;
    height: 15px;
    background: #000;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.service-large:hover::after {
    transform: scale(1.5) rotate(45deg);
}

.service-large:hover {
    transform: translateX(10px);
    border-left-width: 8px;
}

.asymmetric-grid.reverse .service-large {
    border-left: none;
    border-right: 4px solid #000;
}

.asymmetric-grid.reverse .service-large::after {
    right: auto;
    left: 40px;
}

.asymmetric-grid.reverse .service-large:hover {
    transform: translateX(-10px);
    border-right-width: 8px;
}

.service-large h3,
.service-large p {
    position: relative;
    z-index: 1;
    user-select: text;
}

.service-large h3 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: -1px;
    display: inline-block;
}

.service-large h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease;
}

.service-large:hover h3::after {
    width: 100%;
}

.service-large p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.service-small {
    background: #000;
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-small::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    pointer-events: none;
}

.service-small:hover::before {
    width: 200px;
    height: 200px;
}

.service-number {
    font-size: 88px;
    font-weight: 100;
    line-height: 1;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.service-small:hover .service-number {
    transform: scale(1.1);
}

.service-small h4 {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.service-small:hover h4 {
    opacity: 1;
    letter-spacing: 3px;
}

.service-tag {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #000;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: #000;
}

.service-tag:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact {
    padding: 120px 20px;
    background: #fff;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 80px;
    max-width: 1000px;
    margin: 80px auto 0;
}

.contact-divider {
    background: #000;
    width: 1px;
    height: 100%;
}

.contact-info {
    padding-right: 40px;
    padding-bottom: 100px;
}

.contact-info h2 {
    font-size: 48px;
    font-weight: 100;
    margin-bottom: 40px;
    position: relative;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #000;
}

.info-item {
    margin-bottom: 30px;
    padding-left: 30px;
    position: relative;
}

.info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #000;
    transform: rotate(45deg);
}

.info-item h3 {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-item p {
    font-size: 18px;
    font-weight: 300;
}

/* ================================
   FOOTER
   ================================ */

footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 3px solid #000;
    background: #fff;
    position: relative;
}

footer::before,
footer::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 1px;
    background: #000;
}

footer::before {
    left: 20%;
}

footer::after {
    right: 20%;
}

footer p {
    color: #000;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ================================
   ANIMATIONS
   ================================ */

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

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    50% {
        transform: translateY(-600px) scale(1.1);
        opacity: 0.05;
    }
    90% {
        opacity: 0;
    }
}

@keyframes floatDiagonal {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(1400px, -300px) rotate(360deg);
    }
}

@keyframes expandContract {
    0%, 100% {
        transform: scaleX(0.5) rotate(0deg);
    }
    50% {
        transform: scaleX(1.2) rotate(180deg);
    }
}

@keyframes rotateSquare {
    0% {
        transform: rotate(45deg) scale(1);
    }
    25% {
        transform: rotate(135deg) scale(1.1);
    }
    50% {
        transform: rotate(225deg) scale(1);
    }
    75% {
        transform: rotate(315deg) scale(0.9);
    }
    100% {
        transform: rotate(405deg) scale(1);
    }
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(50px);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-50px);
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */

@media (max-width: 1000px) {
    footer::before,
    footer::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .nav-links a::before {
        display: none;
    }

    .nav-links a.active {
        position: relative;
    }

    .nav-links a.active::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: #000;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-points {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .asymmetric-grid,
    .asymmetric-grid.reverse {
        grid-template-columns: 1fr;
    }

    .asymmetric-grid.reverse .service-large {
        border-right: none;
        border-left: 4px solid #000;
    }

    .asymmetric-grid.reverse .service-large::after {
        left: auto;
        right: 20px;
    }

    .asymmetric-grid.reverse .service-large:hover {
        transform: translateX(10px);
        border-left-width: 8px;
        border-right-width: 4px;
    }

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

    .contact-divider {
        width: 100px;
        height: 2px;
        margin: 0 auto;
    }

    .contact-info {
        padding: 0;
    }

    .hero h1 {
        font-size: 48px;
    }

    .services-header h2 {
        font-size: 36px;
    }

    .services-header h2::before,
    .services-header h2::after {
        display: none;
    }

    .service-large {
        padding: 40px;
    }

    .service-large::after {
        top: 20px;
        right: 20px;
    }

    .service-tag {
        padding: 6px 12px;
        font-size: 10px;
    }

    .service-number {
        font-size: 60px;
    }

    .hero-decoration {
        display: none;
    }

    .hero::before,
    .hero::after {
        width: 50px;
    }

    .floating-objects {
        opacity: 0.5;
    }

    .floating-circle:nth-child(2) {
        display: none;
    }

    footer::before,
    footer::after {
        display: none;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
