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

html, body {
    width: 100%;
    overflow-x: hidden;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes twinkle {
    0% {
        opacity: 0;
    }
    8% {
        opacity: 0.5;
    }
    32% {
        opacity: 0.5;
    }
    40% {
        opacity: 0;
    }
    48% {
        opacity: 0;
    }
    52% {
        opacity: 0.5;
    }
    76% {
        opacity: 0.5;
    }
    84% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Animaciones adicionales de scroll */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(140, 82, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(140, 82, 255, 0.6);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Efecto de máquina de escribir - cursor parpadeante */
.typewriter-cursor::after {
    content: '|';
    color: #8c52ff;
    animation: blink-caret 0.75s step-end infinite;
    margin-left: 2px;
}

@keyframes blink-caret {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Clases para animaciones al aparecer */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Alegreya', serif;
    background-color: #f4f4ee;
    color: #323232;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Background Code Fragments */
.code-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.code-symbol {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: rgba(140, 82, 255, 0.5);
    font-weight: 400;
    user-select: none;
    line-height: 1;
    animation: twinkle 15s ease-in-out infinite;
    animation-fill-mode: both;
}

.code-symbol-1 {
    top: 8%;
    left: 5%;
    transform: rotate(-8deg);
    animation-delay: 0s;
    animation-duration: 15s;
}

.code-symbol-2 {
    top: 12%;
    right: 8%;
    transform: rotate(12deg);
    animation-delay: 1.2s;
    animation-duration: 15s;
}

.code-symbol-3 {
    top: 18%;
    left: 12%;
    transform: rotate(-5deg);
    animation-delay: 2.8s;
    animation-duration: 15s;
}

.code-symbol-4 {
    top: 22%;
    right: 15%;
    transform: rotate(15deg);
    animation-delay: 0.5s;
    animation-duration: 15s;
}

.code-symbol-5 {
    top: 28%;
    left: 4%;
    transform: rotate(-10deg);
    animation-delay: 3.2s;
    animation-duration: 15s;
}

.code-symbol-6 {
    top: 32%;
    right: 6%;
    transform: rotate(8deg);
    animation-delay: 1.8s;
    animation-duration: 15s;
}

.code-symbol-7 {
    top: 38%;
    left: 18%;
    transform: rotate(-12deg);
    animation-delay: 0.3s;
    animation-duration: 15s;
}

.code-symbol-8 {
    top: 42%;
    right: 12%;
    transform: rotate(6deg);
    animation-delay: 2.5s;
    animation-duration: 15s;
}

.code-symbol-9 {
    top: 48%;
    left: 8%;
    transform: rotate(-7deg);
    animation-delay: 1.5s;
    animation-duration: 15s;
}

.code-symbol-10 {
    top: 52%;
    right: 20%;
    transform: rotate(10deg);
    animation-delay: 0.8s;
    animation-duration: 15s;
}

.code-symbol-11 {
    top: 15%;
    left: 48%;
    transform: rotate(-9deg);
    animation-delay: 2.2s;
    animation-duration: 15s;
}

.code-symbol-12 {
    top: 35%;
    left: 42%;
    transform: rotate(11deg);
    animation-delay: 0.1s;
    animation-duration: 15s;
}

.code-symbol-13 {
    top: 58%;
    left: 25%;
    transform: rotate(-6deg);
    animation-delay: 1.7s;
    animation-duration: 15s;
}

.code-symbol-14 {
    top: 62%;
    right: 25%;
    transform: rotate(9deg);
    animation-delay: 3s;
    animation-duration: 15s;
}

.code-symbol-15 {
    top: 68%;
    left: 15%;
    transform: rotate(-11deg);
    animation-delay: 0.6s;
    animation-duration: 15s;
}

.code-symbol-16 {
    top: 72%;
    right: 18%;
    transform: rotate(7deg);
    animation-delay: 2.4s;
    animation-duration: 15s;
}

.code-symbol-17 {
    top: 78%;
    left: 7%;
    transform: rotate(-8deg);
    animation-delay: 1.1s;
    animation-duration: 15s;
}

.code-symbol-18 {
    top: 82%;
    right: 10%;
    transform: rotate(13deg);
    animation-delay: 2.9s;
    animation-duration: 15s;
}

.code-symbol-19 {
    top: 88%;
    left: 22%;
    transform: rotate(-5deg);
    animation-delay: 0.4s;
    animation-duration: 15s;
}

.code-symbol-20 {
    top: 92%;
    right: 14%;
    transform: rotate(10deg);
    animation-delay: 1.9s;
    animation-duration: 15s;
}

.code-symbol-21 {
    top: 25%;
    left: 55%;
    transform: rotate(-7deg);
    animation-delay: 2.6s;
    animation-duration: 15s;
}

.code-symbol-22 {
    top: 45%;
    left: 50%;
    transform: rotate(12deg);
    animation-delay: 0.9s;
    animation-duration: 15s;
}

.code-symbol-23 {
    top: 65%;
    left: 35%;
    transform: rotate(-9deg);
    animation-delay: 1.4s;
    animation-duration: 15s;
}

.code-symbol-24 {
    top: 85%;
    left: 30%;
    transform: rotate(8deg);
    animation-delay: 2.1s;
    animation-duration: 15s;
}

@media (max-width: 768px) {
    .code-symbol {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .code-symbol {
        font-size: 0.9rem;
    }
}

.code-line {
    display: block;
}

/* Ensure content is above code background */
.hero,
.process-section,
.when-section,
.projects-section,
.contact-section,
.footer {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    background-color: #f4f4ee;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}


.navbar-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 4rem;
}

@media (max-width: 480px) {
    .navbar-container {
        justify-content: center;
    }

    .logo-container {
        margin-bottom: 0.5rem;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s ease;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
}

.logo-container:hover {
    transform: scale(1.02);
}

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

.nav-link {
    color: #323232;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8c52ff;
    transition: width 0.3s ease;
}

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


.nav-link:hover {
    color: #8c52ff;
}

.nav-link.active {
    color: #8c52ff;
    font-weight: 600;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8c52ff;
    transition: width 0.3s ease;
}

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

.logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    animation: logoFadeIn 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #323232;
    font-family: 'Alegreya', serif;
    letter-spacing: -0.02em;
    animation: logoTextFadeIn 0.8s ease-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes logoTextFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    width: 100%;
}

.hero-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    padding: 0 4rem;
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 2rem;
    }

    .navbar-container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 1.5rem;
    }

    .navbar-container {
        padding: 0 1.5rem;
    }
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    opacity: 1;
    position: relative;
    z-index: 1;
}

.hero-img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
    mix-blend-mode: normal;
    transition: transform 0.3s ease;
    transform: scale(1);
    animation: heroImageFloat 8s ease-in-out infinite;
    border-radius: 0;
    box-shadow: none;
    filter: none;
}

@keyframes heroImageFloat {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1) translateY(-8px);
    }
}

.hero-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    color: #8c52ff;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    align-self: flex-start;
}

.headline {
    font-size: 3.5rem;
    font-weight: 700;
    color: #323232;
    line-height: 1.2;
    margin-bottom: 1rem;
    opacity: 0;
}

.subheadline {
    font-size: 1.4rem;
    font-weight: 400;
    color: #323232;
    line-height: 1.7;
    max-width: 90%;
}

.subheadline strong {
    color: #8c52ff;
    font-weight: 600;
}

.hero-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.tech-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(140, 82, 255, 0.1);
    color: #8c52ff;
    border: 1.5px solid rgba(140, 82, 255, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background-color: rgba(140, 82, 255, 0.15);
    border-color: rgba(140, 82, 255, 0.5);
    transform: translateY(-2px);
}

.hero-local-context {
    font-size: 0.95rem;
    font-weight: 400;
    color: #323232;
    opacity: 0;
    line-height: 1.6;
    margin-top: 0.5rem;
    font-style: italic;
    max-width: 85%;
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.hero-local-context.visible {
    opacity: 0.65;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.3s forwards;
}

.cta-button {
    background-color: #8c52ff;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Alegreya', serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button-secondary {
    background-color: transparent;
    color: #323232;
    border: 2px solid #323232;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Alegreya', serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.cta-button-secondary:hover {
    background-color: #323232;
    color: white;
    transform: translateY(-2px);
}

.cta-button:hover {
    background-color: #7a45e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(140, 82, 255, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Process Section */
.process-section {
    padding: 5rem 0;
    background-color: #f7f5f0;
    width: 100%;
}

.process-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 768px) {
    .process-container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .process-container {
        padding: 0 1.5rem;
    }
}

.process-intro {
    font-size: 2.5rem;
    color: #323232;
    text-align: center;
    margin-bottom: 5rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    letter-spacing: -0.02em;
}

.process-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.process-blocks-left {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-left: 0;
}

.process-map {
    width: 100%;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: calc(50vh - 200px);
    padding-top: 0;
    padding-right: 0;
    margin-top: 2rem;
    align-self: start;
}

.mind-map {
    width: 100%;
    height: 100%;
    max-width: 100%;
    transform: scale(1.1);
}


.map-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out forwards;
    opacity: 0.3;
}

/* Líneas principales desde el centro */
.map-line:nth-of-type(1) {
    animation-delay: 0.5s;
    /* Termina en 2.5s */
}

.map-line:nth-of-type(2) {
    animation-delay: 1s;
    /* Termina en 3s */
}

.map-line:nth-of-type(3) {
    animation-delay: 1.5s;
    /* Termina en 3.5s */
}

/* Líneas secundarias de Entender */
.map-line:nth-of-type(4),
.map-line:nth-of-type(5),
.map-line:nth-of-type(6) {
    animation-delay: 2s;
    /* Terminan en 4s */
}

/* Líneas secundarias de Programar */
.map-line:nth-of-type(7),
.map-line:nth-of-type(8),
.map-line:nth-of-type(9),
.map-line:nth-of-type(10) {
    animation-delay: 2.5s;
    /* Terminan en 4.5s */
}

/* Líneas secundarias de Acompañar */
.map-line:nth-of-type(11),
.map-line:nth-of-type(12),
.map-line:nth-of-type(13),
.map-line:nth-of-type(14) {
    animation-delay: 3s;
    /* Terminan en 5s */
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.map-node {
    opacity: 0;
    animation: fadeInNode 0.6s ease-out forwards;
    transition: r 0.3s ease;
}

.map-node.central {
    animation-delay: 0s;
}

.map-node:nth-of-type(2) {
    animation-delay: 0.8s;
}

.map-node:nth-of-type(3) {
    animation-delay: 1.3s;
}

.map-node:nth-of-type(4) {
    animation-delay: 1.8s;
}

.map-node:nth-of-type(5),
.map-node:nth-of-type(6),
.map-node:nth-of-type(7) {
    /* Nodos pequeños de Entender - aparecen justo antes de sus textos (4.1s) */
    animation-delay: 4s;
}

.map-node:nth-of-type(8),
.map-node:nth-of-type(9),
.map-node:nth-of-type(10),
.map-node:nth-of-type(11) {
    /* Nodos pequeños de Programar - aparecen justo antes de sus textos (4.6s) */
    animation-delay: 4.5s;
}

.map-node:nth-of-type(12),
.map-node:nth-of-type(13),
.map-node:nth-of-type(14),
.map-node:nth-of-type(15) {
    /* Nodos pequeños de Acompañar - aparecen justo antes de sus textos (5.1s) */
    animation-delay: 5s;
}

@keyframes fadeInNode {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.map-node:hover {
    r: 10;
}

.map-label {
    font-family: 'Alegreya', serif;
    fill: #323232;
    font-size: 16px;
    pointer-events: none;
    opacity: 0;
    animation: fadeInLabel 0.6s ease-out forwards;
    will-change: opacity;
}

.map-label.central-label {
    font-weight: 600;
    font-size: 18px;
    fill: #8c52ff;
    animation-delay: 0.3s;
    animation-name: fadeInLabelCentral;
}

.map-label.primary {
    font-weight: 600;
    font-size: 17px;
    /* Aparece después de que termine la línea 1 (2.5s) */
    animation-delay: 2.6s;
    animation-name: fadeInLabelPrimary;
}

.map-label.primary:nth-of-type(4) {
    /* Aparece después de que termine la línea 2 (3s) */
    animation-delay: 3.1s;
}

.map-label.primary:nth-of-type(6) {
    /* Aparece después de que termine la línea 3 (3.5s) */
    animation-delay: 3.6s;
}

.map-label.secondary {
    font-weight: 400;
    font-size: 14px;
    /* Aparece después de que terminen las líneas de Entender (4s) */
    animation-delay: 4.1s;
    animation-name: fadeInLabelSecondary;
}

.map-label.secondary:nth-of-type(8),
.map-label.secondary:nth-of-type(9),
.map-label.secondary:nth-of-type(10) {
    animation-delay: 4.1s;
}

.map-label.secondary:nth-of-type(11),
.map-label.secondary:nth-of-type(12),
.map-label.secondary:nth-of-type(13),
.map-label.secondary:nth-of-type(14) {
    /* Aparece después de que terminen las líneas de Programar (4.5s) */
    animation-delay: 4.6s;
}

.map-label.secondary:nth-of-type(15),
.map-label.secondary:nth-of-type(16),
.map-label.secondary:nth-of-type(17),
.map-label.secondary:nth-of-type(18) {
    /* Aparece después de que terminen las líneas de Acompañar (5s) */
    animation-delay: 5.1s;
}

@keyframes fadeInLabelCentral {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLabelPrimary {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.9;
    }
}

@keyframes fadeInLabelSecondary {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}

.map-node:hover + .map-label,
.map-label:hover {
    opacity: 1 !important;
}

.process-block {
    display: flex;
    flex-direction: column;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.process-block:nth-child(1) {
    animation-delay: 0.2s;
}

.process-block:nth-child(2) {
    animation-delay: 0.4s;
}

.process-block:nth-child(3) {
    animation-delay: 0.6s;
}

.process-line {
    width: 60px;
    height: 1px;
    background-color: #323232;
    opacity: 0.3;
    margin-bottom: 2rem;
}

.process-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.process-icon {
    width: 28px;
    height: 28px;
    stroke: #323232;
    opacity: 0.7;
}

.process-block-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #323232;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.process-block:hover .process-block-title {
    color: #8c52ff;
}

.process-block-text {
    font-size: 1.05rem;
    color: #323232;
    opacity: 0.75;
    line-height: 1.7;
    margin: 0;
    max-width: 65%;
    transition: opacity 0.3s ease;
}

.process-block:hover .process-block-text {
    opacity: 1;
}

/* When Section */
.when-section {
    padding: 5rem 0;
    background-color: #f4f4ee;
    width: 100%;
}

.when-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 768px) {
    .when-container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .when-container {
        padding: 0 1.5rem;
    }
}

.when-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #323232;
    margin-bottom: 2rem;
    line-height: 1.3;
    opacity: 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.when-intro {
    font-size: 1.2rem;
    color: #323232;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.when-intro.visible {
    opacity: 0.9;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.benefit-item {
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.benefit-item:nth-child(1) {
    animation-delay: 0.2s;
}

.benefit-item:nth-child(2) {
    animation-delay: 0.3s;
}

.benefit-item:nth-child(3) {
    animation-delay: 0.4s;
}

.benefit-item:nth-child(4) {
    animation-delay: 0.5s;
}

.benefit-separator {
    width: 60px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.benefit-icon-simple {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
    color: #323232;
}

.benefit-title-simple {
    font-size: 1.5rem;
    font-weight: 600;
    color: #323232;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.benefit-item:hover .benefit-title-simple {
    color: #8c52ff;
}


.benefit-text-simple {
    font-size: 1.1rem;
    color: #323232;
    line-height: 1.8;
    opacity: 0.85;
    margin: 0;
    max-width: 90%;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    padding: 4rem 0 2rem;
    color: white;
    width: 100%;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 1.5rem;
    }
}

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

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-about {
    max-width: 300px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    margin: 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8c52ff;
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

    opacity: 0.85;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin: 0;
}

.footer-location {
    color: white;
    font-size: 0.95rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
}

.footer-location svg {
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-copyright p {
    margin: 0;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background-color: #f4f4ee;
    width: 100%;
}

.projects-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 768px) {
    .projects-container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .projects-container {
        padding: 0 1.5rem;
    }
}

.projects-intro {
    font-size: 2.5rem;
    font-weight: 700;
    color: #323232;
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    opacity: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
}

.project-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #e8e8e8;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.project-card:hover .project-image-wrapper {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(0.8px);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-image {
    filter: blur(0px);
    transform: scale(1.02);
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #323232;
    line-height: 1.4;
    margin: 0;
}

.project-description {
    font-size: 0.95rem;
    color: #323232;
    line-height: 1.6;
    opacity: 0.75;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: #f4f4ee;
    color: #323232;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.contact-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 0 1.5rem;
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 100%;
    width: 100%;
}

.contact-text-wrapper {
    text-align: left;
}

.contact-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #323232;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    opacity: 0;
}

.contact-text {
    font-size: 1.3rem;
    color: #323232;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.contact-text-secondary {
    font-size: 1.15rem;
    color: #323232;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.contact-text-industries {
    font-size: 1.1rem;
    color: #323232;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-style: italic;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-button-primary {
    background-color: #8c52ff;
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Alegreya', serif;
    text-decoration: none;
    display: inline-block;
}

.contact-button-primary:hover {
    background-color: #7a45e6;
}

.contact-button-secondary {
    background-color: transparent;
    color: #323232;
    border: 2px solid #323232;
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Alegreya', serif;
    position: relative;
    overflow: hidden;
}

.contact-button-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #323232;
    transition: left 0.3s ease;
    z-index: -1;
}

.contact-button-secondary:hover::before {
    left: 0;
}

.contact-button-secondary:hover {
    border-color: #323232;
    color: #f4f4ee;
    transform: translateY(-2px);
}

.contact-button-secondary span {
    position: relative;
    z-index: 1;
}

.contact-form {
    max-width: 500px;
    margin: 2rem auto 0;
    text-align: left;
    animation: fadeInUp 0.5s ease-out;
    width: 100%;
}

@media (max-width: 480px) {
    .contact-form {
        max-width: 100%;
    }
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: 'Alegreya', serif;
    color: #323232;
    background-color: white;
    border: 2px solid rgba(50, 50, 50, 0.2);
    border-radius: 8px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8c52ff;
}

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

.contact-form .contact-button-primary {
    width: 100%;
    margin-top: 0.5rem;
}

/* Botón Volver Arriba */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #8c52ff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(140, 82, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #7a45e6;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(140, 82, 255, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

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

    .process-intro {
        font-size: 2rem;
        margin-bottom: 3.5rem;
    }

    .process-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 100%;
    }

    .process-container {
        padding: 0 1.5rem;
    }

    .process-blocks-left {
        padding-left: 0;
        gap: 3.5rem;
        order: 1;
    }

    .process-map {
        position: relative;
        top: 0;
        transform: none;
        height: 500px;
        order: 2;
        padding-right: 0;
    }

    .mind-map {
        transform: scale(1);
    }

    .process-block {
        text-align: left;
    }

    .process-block-text {
        max-width: 85%;
    }

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

    .hero-badge {
        text-align: center;
        margin-bottom: 0.75rem;
        align-self: center;
    }

    .hero-tech-badges {
        justify-content: center;
        margin: 1.25rem 0;
    }

    .subheadline,
    .hero-local-context {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-img {
        max-width: 800px;
        transform: scale(1);
    }

    .process-section {
        padding: 3rem 0;
    }

    .process-intro {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }

    .process-layout {
        gap: 2.5rem;
    }

    .process-map {
        height: 400px;
    }

    .mind-map {
        transform: scale(0.9);
    }

    .process-blocks-left {
        gap: 3rem;
    }

    .process-block-title {
        font-size: 1.4rem;
    }

    .process-block-text {
        font-size: 1rem;
    }

    .when-section {
        padding: 3rem 0;
    }

    .when-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .when-intro {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .when-text {
        font-size: 1rem;
    }

    .when-closing {
        font-size: 1.05rem;
    }

    .projects-section {
        padding: 3rem 0;
    }

    .projects-intro {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }

    .contact-section {
        padding: 4rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-text-wrapper {
        text-align: center;
    }

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

    .contact-buttons {
        justify-content: center;
    }

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

    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .logo {
        height: 32px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-menu {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .hero-container {
        gap: 2.5rem;
    }

    .headline {
        font-size: 2.5rem;
    }

    .subheadline {
        font-size: 1.2rem;
        max-width: 100%;
    }

    .hero-tech-badges {
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .tech-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .hero-tech-badges {
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .tech-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .hero-local-context {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .cta-button,
    .cta-button-secondary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-img {
        max-width: 600px;
        transform: scale(1);
    }

    .process-section {
        padding: 2.5rem 0;
    }

    .process-intro {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .process-layout {
        gap: 2.5rem;
    }

    .process-map {
        height: 400px;
    }

    .mind-map {
        transform: scale(1);
    }

    .process-block-title {
        font-size: 1.3rem;
    }

    .process-block-text {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .when-section {
        padding: 2.5rem 0;
    }

    .when-title {
        font-size: 1.8rem;
    }

    .when-intro {
        font-size: 1rem;
    }


    .projects-section {
        padding: 2.5rem 0;
    }

    .projects-intro {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-section {
        padding: 3rem 0;
    }

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

    .contact-text {
        font-size: 1.1rem;
    }

    .contact-text-secondary {
        font-size: 1rem;
    }

    .contact-text-industries {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .headline {
        font-size: 2rem;
    }

    .subheadline {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-local-context {
        font-size: 0.85rem;
        max-width: 100%;
    }

    .projects-section {
        padding: 2.5rem 0;
    }

    .projects-intro {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .projects-grid {
        gap: 2.5rem;
    }

    .project-image-wrapper {
        margin-bottom: 1.25rem;
    }

    .project-title {
        font-size: 1.15rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .contact-section {
        padding: 3rem 0;
    }

    .contact-content {
        gap: 2.5rem;
    }

    .contact-title {
        font-size: 1.9rem;
        margin-bottom: 1rem;
    }

    .contact-text {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    .contact-text-secondary {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .contact-text-industries {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .contact-button-primary,
    .contact-button-secondary {
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }

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

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

    .footer-about {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    .when-section {
        padding: 2.5rem 0;
    }

    .contact-section {
        padding: 4rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-text-wrapper {
        text-align: center;
    }

    .contact-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .contact-text {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }

    .contact-text-secondary {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }

    .contact-text-industries {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-button-primary,
    .contact-button-secondary {
        width: 100%;
        max-width: 350px;
        padding: 1.1rem 2.5rem;
        font-size: 1.1rem;
    }

    .contact-image-wrapper {
        order: -1;
    }

    .projects-section {
        padding: 3rem 0;
    }

    .projects-intro {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-image-wrapper {
        aspect-ratio: 16 / 9;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .when-title {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }

    .when-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }


    .benefits-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefit-separator {
        width: 40px;
        margin-bottom: 1rem;
    }

    .benefit-icon-simple {
        width: 24px;
        height: 24px;
        margin-bottom: 0.75rem;
    }

    .benefit-title-simple {
        font-size: 1.2rem;
    }

    .benefit-text-simple {
        font-size: 0.95rem;
    }

    .when-closing {
        font-size: 1rem;
        padding-top: 1.5rem;
    }
}

/* ============================================
   PÁGINA DE SERVICIOS - Sistemas a la medida
   ============================================ */

/* Service Main Section */
.service-main-section {
    padding: 6rem 0;
    background-color: #f4f4ee;
    position: relative;
    z-index: 1;
}

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

.service-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #323232;
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Alegreya', serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.service-main-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-main-paragraph {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #323232;
    font-family: 'Alegreya', serif;
}

.service-main-image {
    width: 100%;
    height: 100%;
    box-shadow: none;
    filter: none;
}

.service-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: none;
    filter: none;
}

/* Service When Section */
.service-when-section {
    padding: 6rem 0;
    background-color: #f4f4ee;
    position: relative;
    z-index: 1;
}

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

.service-when-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #323232;
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Alegreya', serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.service-when-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.service-when-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background-color: transparent;
    border: 1px solid rgba(50, 50, 50, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-when-item:hover {
    border-color: rgba(140, 82, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-when-icon {
    width: 48px;
    height: 48px;
    color: #323232;
    margin-bottom: 0.5rem;
}

.service-when-item-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #323232;
    font-family: 'Alegreya', serif;
    margin-bottom: 0.5rem;
}

.service-when-item-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #323232;
    opacity: 0.85;
    font-family: 'Alegreya', serif;
}

/* Service Related Section */
.service-related-section {
    padding: 6rem 0;
    background-color: #f4f4ee;
    position: relative;
    z-index: 1;
}

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

.service-related-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #323232;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Alegreya', serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.service-related-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #323232;
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Alegreya', serif;
    opacity: 0.9;
}

.service-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-related-card {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-related-card:hover {
    transform: translateY(-8px);
}

.service-related-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin-bottom: 1.5rem;
}

.service-related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.service-related-card:hover .service-related-image {
    filter: blur(0);
}

.service-related-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-related-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #323232;
    font-family: 'Alegreya', serif;
    margin-bottom: 0.5rem;
}

.service-related-card-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #323232;
    opacity: 0.85;
    font-family: 'Alegreya', serif;
    margin-bottom: 1rem;
}

.service-related-link {
    font-size: 1.05rem;
    color: #8c52ff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Alegreya', serif;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.service-related-link:hover {
    color: #6b3fd4;
}

/* Service CTA Section */
.service-cta-section {
    padding: 6rem 0;
    background-color: #f4f4ee;
    position: relative;
    z-index: 1;
}

.service-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.service-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #323232;
    margin-bottom: 1.5rem;
    font-family: 'Alegreya', serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.service-cta-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #323232;
    margin-bottom: 2.5rem;
    font-family: 'Alegreya', serif;
    opacity: 0.9;
}

.service-cta-button {
    display: inline-block;
    background-color: #8c52ff;
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Alegreya', serif;
    text-decoration: none;
}

.service-cta-button:hover {
    background-color: #6b3fd4;
}

/* About Intro Section - Personal Presentation */
.about-intro-section {
    padding: 6rem 0;
    background-color: #f4f4ee;
    position: relative;
    z-index: 1;
}

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

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

.about-intro-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
}

.about-intro-img {
    width: 100%;
    max-width: 350px;
    height: 400px;
    border-radius: 16px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1.15);
}

.about-intro-img:hover {
    transform: scale(1.2) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}

.about-intro-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-intro-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #323232;
    margin-bottom: 0.5rem;
    font-family: 'Alegreya', serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-intro-paragraph {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #323232;
    font-family: 'Alegreya', serif;
}

/* Responsive - Service Pages */
@media (max-width: 968px) {
    .service-main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-main-title,
    .service-when-title,
    .service-related-title,
    .service-cta-title {
        font-size: 2rem;
    }

    .service-when-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-related-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-intro-image {
        order: 1;
    }

    .about-intro-text {
        order: 2;
    }

    .about-intro-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .service-main-section,
    .service-when-section,
    .service-related-section,
    .service-cta-section,
    .about-intro-section {
        padding: 4rem 0;
    }

    .about-intro-img {
        max-width: 280px;
        height: 320px;
        transform: scale(1.1);
    }

    .about-intro-img:hover {
        transform: scale(1.15) translateY(-4px);
    }

    .about-intro-title {
        font-size: 1.6rem;
    }

    .about-intro-paragraph {
        font-size: 1.05rem;
    }

    .service-main-title,
    .service-when-title,
    .service-related-title,
    .service-cta-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .service-main-paragraph,
    .service-cta-text {
        font-size: 1.05rem;
    }

    .service-when-item {
        padding: 1.5rem;
    }

    .service-related-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .service-main-container,
    .service-when-container,
    .service-related-container,
    .service-cta-container {
        padding: 0 1.5rem;
    }

    .service-main-title,
    .service-when-title,
    .service-related-title,
    .service-cta-title {
        font-size: 1.5rem;
    }

    .service-cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================
   BLOG PAGE STYLES
   ============================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background-color: transparent;
    border: 1px solid rgba(50, 50, 50, 0.1);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-card:hover {
    border-color: rgba(140, 82, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background-color: #f4f4ee;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px 12px 0 0;
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    padding: 2rem;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #323232;
    font-family: 'Alegreya', serif;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #323232;
    opacity: 0.85;
    font-family: 'Alegreya', serif;
    flex: 1;
}

.blog-card-link {
    font-size: 1.05rem;
    color: #8c52ff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Alegreya', serif;
    transition: color 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.blog-card-link:hover {
    color: #6b3fd4;
}

/* Responsive Blog */
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-card {
        padding: 0;
    }

    .blog-card-content {
        padding: 1.5rem;
    }

    .blog-card-image {
        min-height: 300px;
    }

    .blog-card-image iframe {
        height: 500px;
    }

    .blog-card-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #323232;
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: 'Alegreya', serif;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: white;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Alegreya', serif;
}

.cookie-button-accept {
    background-color: #8c52ff;
    color: white;
}

.cookie-button-accept:hover {
    background-color: #6b3fd4;
    transform: translateY(-2px);
}

.cookie-button-decline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-button-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1.5rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-banner-text {
        text-align: center;
        font-size: 0.9rem;
    }

    .cookie-banner-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-button {
        flex: 1;
        max-width: 150px;
    }
    }
}
