/* Font Face Declarations */
@font-face {
    font-family: 'StabilGrotesk';
    src: url('StabilGrotesk/StabilGrotesk-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'StabilGrotesk';
    src: url('StabilGrotesk/StabilGrotesk-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'StabilGrotesk';
    src: url('StabilGrotesk/StabilGrotesk-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'StabilGrotesk';
    src: url('StabilGrotesk/StabilGrotesk-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'StabilGrotesk', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    background: transparent;
    z-index: 9999;
    pointer-events: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.logo-section {
    display: flex;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.dc-logo {
    width: 60px;
    height: 60px;
    filter: brightness(0);
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
}

/* Hamburger Menu */
.hamburger-menu {
    display: block !important;
    cursor: pointer;
    z-index: 10000;
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
}

    .hamburger-icon {
        width: 30px;
        height: 20px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin: auto;
    }

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Make the X (close state) white */
.hamburger-menu.active .hamburger-icon span {
    background-color: #ffffff !important;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: none !important;
    animation: none !important;
    visibility: visible !important;
}

.nav-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    transition: none !important;
    animation: none !important;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    font-size: 2rem;
    text-transform: uppercase;
    transition: none !important;
    letter-spacing: 0.1em;
    position: relative;
    opacity: 1 !important;
    transform: none !important;
}

.nav-link:hover {
    color: #F1A6A6;
}

.social-icons {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    color: #ffffff;
    transition: color 0.3s ease;
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    color: #F1A6A6;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    background: #000000;
    overflow: hidden;
    width: 100%;
    padding-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    z-index: 2;
}

/* Desktop image */
.hero-desktop {
    display: block;
}

/* Mobile image */
.hero-mobile {
    display: none;
}

/* Show mobile image on mobile devices */
@media (max-width: 768px) {
    .hero-desktop {
        display: none;
    }
    
    .hero-mobile {
        display: block;
    }
}

/* Main Title and Services Container */
.main-services-container {
    background: rgb(249, 240, 227);
    transition: background 0.5s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}

.main-services-container.dark {
    background: #000000;
}

/* Main Title Section */
.main-title {
    padding: 5rem 0 2rem 0;
    min-height: 20vh;
    display: block;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
}

.title-content {
    text-align: left;
    width: 100%;
    margin: 0;
}

.title-text {
    font-family: 'StabilGrotesk', sans-serif;
    font-weight: 900;
    line-height: 1.1;
    text-align: left;
    width: 100%;
    margin: 0;
    max-width: none;
}
.title-line-1, .title-line-2, .cases-line-1, .cases-line-2, .contact-title {
    text-align: left !important;
    transition: opacity 1s cubic-bezier(0.77,0,0.18,1) !important;
    transform: none !important;
}
.cases-line-2 {
    margin-left: 0;
}
.title-line-1.fade-in, .title-line-2.fade-in, .cases-line-1.fade-in, .cases-line-2.fade-in {
    opacity: 1;
    transform: none !important;
}
.title-line-1.fade-out, .title-line-2.fade-out, .cases-line-1.fade-out, .cases-line-2.fade-out {
    opacity: 0;
    transform: none !important;
}

/* Background now handled by .main-services-container */
.title-line-1, .title-line-2 {
  color: #000 !important;
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
  transition: color 0.3s, -webkit-text-stroke 0.3s, text-stroke 0.3s;
}
.main-services-container.dark .title-line-1 {
  color: transparent !important;
  -webkit-text-stroke: 2px #fff !important;
  text-stroke: 2px #fff !important;
}
.main-services-container.dark .title-line-2 {
  color: #fff !important;
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
}
.title-line-1 {
    font-size: 8rem;
    color: #000;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    margin-bottom: 0;
    text-align: left;
    line-height: 0.9;
    letter-spacing: -0.02em;
    width: 100%;
    display: block;
}
.title-line-2 {
    font-size: 8rem;
    color: #000;
    text-align: left !important;
    line-height: 0.9;
    letter-spacing: -0.02em;
    width: 100%;
    display: block;
}
.title-line-2,
.cases-line-2 {
  /* El margin-left solo se aplica en desktop ahora */
}

@media (min-width: 769px) {
  .title-line-1,
  .title-line-2,
  .cases-line-1,
  .cases-line-2,
  .contact-title {
    text-align: center !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .title-line-2,
  .cases-line-2 {
    margin-left: 0 !important;
  }
}

/* Work Button */
.work-button {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 1rem 2rem;
    font-family: 'StabilGrotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
    margin-top: 2rem;
    display: block;
    margin: 2.5rem auto 0 auto;
}

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

.work-button:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

/* Work Modal */
.work-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.work-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.work-modal-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.work-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10001;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.work-modal-logo .dc-logo {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.work-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.work-modal-close:hover {
    transform: scale(1.1);
}

.work-modal-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.work-modal-close span:first-child {
    transform: rotate(45deg);
}

.work-modal-close span:last-child {
    transform: rotate(-45deg);
}

.work-modal-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.work-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: opacity 0.3s ease;
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.play-button svg {
    width: 30px;
    height: 30px;
    color: #000;
    margin-left: 3px;
}

/* Services Section */
.services {
    padding: 0 2rem;
    position: relative;
    min-height: 43vh;
    overflow: hidden;
}

.spiral-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--spiral-rotation, 0deg));
    z-index: 1;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.spiral-image {
    width: 400px;
    height: auto;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
}

@keyframes rotateSpiral {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.services-container {
    max-width: 90vw;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.service-item {
    background: transparent !important;
    border-radius: 18px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    box-shadow: none !important;
    padding: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: none !important;
}

.service-item.expanded {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transform: scale(1.02);
    z-index: 10;
}

.service-item.animate-in {
    opacity: 1;
    transform: none !important;
}

.service-item:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 4px 24px 0 rgba(241,166,166,0.18) !important;
    z-index: 2;
}

.service-content {
    color: #000000;
    text-align: center;
    transition: color 0.3s ease;
}

.main-services-container.dark .service-content {
    color: #ffffff;
}

.service-number {
    font-size: 1.2rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    transition: color 0.3s ease;
}

.main-services-container.dark .service-number {
    color: #ffffff;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-description {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
}

/* Service Modal Styles */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-container {
    background: #000000;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: scale(0.7) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(241, 166, 166, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.service-modal-overlay.active .service-modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.service-modal-logo .dc-logo {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.service-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.service-modal-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.service-modal-close span:first-child {
    transform: rotate(45deg);
}

.service-modal-close span:last-child {
    transform: rotate(-45deg);
}

.service-modal-close:hover span {
    background: rgba(241, 166, 166, 1);
    transform: scale(1.2);
}

.service-modal-content {
    padding: 3rem;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}

.service-modal-title {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid rgba(241, 166, 166, 0.6);
}

.service-modal-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(241, 166, 166, 1);
    text-shadow: 0 0 20px rgba(241, 166, 166, 0.5);
}

.service-modal-name {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.service-modal-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.service-detail-section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-modal-overlay.active .service-detail-section {
    opacity: 1;
    transform: translateY(0);
}

.service-modal-overlay.active .service-detail-section:nth-child(1) {
    transition-delay: 0.3s;
}

.service-modal-overlay.active .service-detail-section:nth-child(2) {
    transition-delay: 0.5s;
}

.service-modal-overlay.active .service-detail-section:nth-child(3) {
    transition-delay: 0.7s;
}

.service-detail-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 4px solid rgba(241, 166, 166, 1);
    padding-left: 1rem;
}

.service-detail-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Video Background Section */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0.7) contrast(1.2);
    object-fit: cover;
}

/* Modal Trigger */
.modal-trigger {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-trigger:hover {
    transform: translateY(-50%) scale(1.1);
}

.trigger-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(241, 166, 166, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.trigger-content:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(241, 166, 166, 1);
    box-shadow: 0 0 30px rgba(241, 166, 166, 0.3);
}

.trigger-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.trigger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trigger-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background: rgba(241, 166, 166, 0.8);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.trigger-content:hover .trigger-icon span {
    background: rgba(241, 166, 166, 1);
    transform: scaleX(1.2);
}

/* Modern Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #000000;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: scale(0.7) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(241, 166, 166, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.modal-logo .dc-logo {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.modal-close span:first-child {
    transform: rotate(45deg);
}

.modal-close span:last-child {
    transform: rotate(-45deg);
}

.modal-close:hover span {
    background: #ffffff;
    transform: scale(1.2);
}

/* Modal Content */
.modal-content {
    padding: 3rem;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.modal-section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.modal-overlay.active .modal-section {
    opacity: 1;
    transform: translateY(0);
}

.modal-overlay.active .modal-section:nth-child(1) {
    transition-delay: 0.3s;
}

.modal-overlay.active .modal-section:nth-child(2) {
    transition-delay: 0.5s;
}

.modal-overlay.active .modal-section:nth-child(3) {
    transition-delay: 0.7s;
}

.modal-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 3px solid rgba(241, 166, 166, 0.6);
    padding-bottom: 1rem;
    position: relative;
}

.modal-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, rgba(241, 166, 166, 1), transparent);
}

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

.approach-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(241, 166, 166, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.approach-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(241, 166, 166, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(241, 166, 166, 0.2);
}

.approach-card:hover::before {
    opacity: 1;
}

.approach-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.approach-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.approach-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Case Grid */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.case-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 !important;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(241, 166, 166, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(241, 166, 166, 0.2);
}

.case-image {
    height: 200px;
    background: linear-gradient(45deg, rgba(241, 166, 166, 0.2), rgba(255, 107, 157, 0.2));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(241, 166, 166, 0.9);
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.case-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(241, 166, 166, 0.2);
    color: rgba(241, 166, 166, 1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(241, 166, 166, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(241, 166, 166, 0.2);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-info h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0 0 10px 0;
}

/* Modal Footer */
.modal-footer {
    padding: 2rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.social-link:hover {
    color: rgba(241, 166, 166, 1);
    background: rgba(241, 166, 166, 0.1);
}

/* Product Showcase Section */
.product-showcase {
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 0;
}

.product-showcase-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100vw;
}

.showcase-container {
    display: flex;
    height: 100vh;
}

.showcase-left {
    flex: 1;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.showcase-right {
    flex: 1;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4757 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.product-info {
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.product-brand {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.product-name {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Contact Section */
.contact {
    padding: 3rem 2rem;
    background: #000000;
}

/* Featured Cases Section */
.featured-cases {
    background: #000;
    padding: 40px 0;
    position: relative;
}

.cases-container {
    max-width: 90vw;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.cases-title-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    z-index: 2;
    margin-bottom: 32px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.cases-line-1 {
    font-family: 'StabilGrotesk', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    color: transparent !important;
    -webkit-text-stroke: 2px #fff !important;
    text-stroke: 2px #fff !important;
    text-align: center;
    margin-bottom: 0;
    line-height: 0.9;
    letter-spacing: -0.02em;
    width: 100%;
    display: block;
}

.cases-line-2 {
    font-family: 'StabilGrotesk', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    color: #fff !important;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    text-align: center !important;
    line-height: 0.9;
    letter-spacing: -0.02em;
    width: 100%;
    display: block;
}

.cases-line-1.fade-in, .cases-line-2.fade-in {
    opacity: 1;
}

.cases-line-1.fade-out, .cases-line-2.fade-out {
    opacity: 0;
}

.cases-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 60px;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 40px;
    /* animation: scroll 30s linear infinite; */
    width: auto;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 40px)); /* Move by half the width plus gap */
    }
}

.case-card {
    background: #000;
    border-radius: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex: 0 0 calc(33.333% - 14px);
    min-width: 300px;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.case-visual {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.case-1 {
    background-image: url('16hrs.jpg');
}

.case-2 {
    background-image: url('gourmet.png');
}

.case-3 {
    background-image: url('nmc.jpg');
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.case-card:hover .case-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.case-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #F1A6A6;
    color: #fff;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.case-content {
    padding: 32px;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.case-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Case Modal Styles */
.case-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 12000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}
.case-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.case-modal-container {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 1200px;
    max-height: 98vh;
    height: 95vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.case-modal-overlay.active .case-modal-container {
    transform: scale(1) translateY(0);
}

.case-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
}

.case-modal-logo .dc-logo {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.case-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.case-modal-close:hover {
    transform: rotate(90deg);
}

.case-modal-close span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.case-modal-close span:first-child {
    transform: rotate(45deg);
}

.case-modal-close span:last-child {
    transform: rotate(-45deg);
}

.case-modal-content {
    display: flex;
    height: calc(95vh - 80px);
}

.case-modal-video {
    position: relative;
    background: #000;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 600px;
    flex: 1;
}

.case-modal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 600px;
}

.contact-container {
    max-width: 90vw;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.contact-title {
    text-align: center !important;
    margin-bottom: 32px;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1.1;
}

.contact-main {
    color: transparent;
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #ffffff;
    display: block;
}
    
    .nav-link {
        font-size: 1.3rem;
    }
    
    .social-icons {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    .carousel-track {
        gap: 15px;
        animation-duration: 15s;
    }
    
    .case-card {
        flex: 0 0 calc(90% - 4px);
        min-width: 280px;
    }
    
    .cases-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }
    
    .case-visual {
        height: 180px;
    }
    
    .case-content {
        padding: 16px;
    }
    
    .case-title {
        font-size: 1.1rem;
    }
    
    .cases-container {
        padding: 0px;
    }
    

    


.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    color: #ffffff;
}

.country {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.address {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.phone {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.email-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #ff6b9d;
}

.social-links-contact {
    margin-top: 2rem;
}

.social-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-links-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link-contact {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.social-link-contact svg {
    width: 24px;
    height: 24px;
}

.social-link-contact:hover {
    color: #ff6b9d;
    border-color: #ff6b9d;
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1rem;
    padding: 0.75rem 0;
    transition: border-color 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'StabilGrotesk', sans-serif;
}

.form-checkboxes {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #ff6b9d;
    border-color: #ff6b9d;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.work-button, .submit-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: calc(10px + (1vw - 3.75px) * 0) calc(48px + (1vw - 3.75px) * 0);
    border-radius: 24px;
    font-family: 'StabilGrotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: none;
}
.work-button:hover, .submit-btn:hover {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
    transform: none;
}

/* Footer */
.footer {
    padding: 2rem 4rem;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 90vw;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    position: static !important;
    left: unset !important;
    bottom: unset !important;
    z-index: unset !important;
}

.footer-logo .dc-logo {
    filter: brightness(0) invert(1) !important;
}

.footer-info {
    text-align: right;
}

.company-info {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 3rem 0;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.5rem;
        height: 3.6rem;
    }
    
    .service-description {
        font-size: 0.8rem;
    }
    
    .carousel-track {
        gap: 30px;
        animation-duration: 25s;
    }
    
    .case-card {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .cases-title {
        font-size: 3rem;
    }
    
    /* Títulos de 5rem para tablets */
    .title-line-1, .title-line-2, .cases-line-1, .cases-line-2, .contact-title {
        font-size: 5rem !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
        background: transparent;
    }
    
    .hero {
        min-height: 40vh !important;
        height: 40vh !important;
    }
    
    .header-content {
        min-height: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .logo-section {
        height: 44px;
        display: flex;
        align-items: center;
    }
    .logo-section .dc-logo {
        align-self: center;
    }
    .hamburger-menu {
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 10px;
    }
    
    .nav-link {
        font-size: 1.3rem;
        padding: 0.75rem 0;
    }
    
    .social-icons {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    .nav-menu {
        padding: 2rem 1rem;
    }
    
    .logo-section .dc-logo {
        width: 44px !important;
        height: 44px !important;
        filter: brightness(0);
        align-self: center;
    }
    
    .main-title {
        padding: 1rem 0.5rem;
        min-height: 8vh;
    }
    
    .work-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        margin-top: 1.5rem;
    }
    
    .work-modal-header {
        padding: 1rem 2rem;
    }
    
    .work-modal-logo .dc-logo {
        width: 40px;
        height: 40px;
    }
    
    .work-modal-close {
        width: 35px;
        height: 35px;
    }
    
    .work-modal-close span {
        width: 18px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 25px;
        height: 25px;
    }
    
    .services {
        padding: 1rem 0.5rem;
        min-height: 20vh;
    }
    
    .spiral-image {
        width: 250px;
    }
    
    .video-section {
        height: 60vh;
    }
    
    .hero-video {
        height: 45vh;
    }
    
    .hero-bg-image {
        height: 40vh;
    }
    
    /* Responsive modal */
    .modal-container {
        width: 95%;
        max-width: 1000px;
    }
    
    .modal-content {
        padding: 2rem;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Responsive service modal */
    .service-modal-container {
        width: 95%;
        max-width: 700px;
    }
    
    .service-modal-content {
        padding: 2rem;
    }
    
    .service-modal-title {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .service-modal-number {
        font-size: 3rem;
    }
    
    .service-modal-name {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.4rem;
        height: auto;
        min-height: 2.8rem;
        line-height: 1.2;
    }
    
    .service-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .product-showcase {
        padding: 4rem 0;
    }
    
    .contact {
        padding: 1rem 0.5rem;
    }
    
    .contact-content {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .contact-info {
        text-align: center;
        margin: 0 auto;
    }
    
    .social-links-contact {
        justify-content: center;
        text-align: center;
    }
    
    .social-links-grid {
        justify-content: center;
        display: flex;
        margin: 0 auto;
    }
    
    .contact-title {
        font-size: 4rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem;
    }
    
    .submit-btn {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    .footer {
        padding: 1rem 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .cases-title-text,
    .contact-title {
        margin-bottom: 10px;
    }
    
    .case-description {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 40vh !important;
        height: 45vh !important;
    }
    
    .main-title {
        padding:3rem 1rem 0.5rem 1rem
    }
    
    .work-button {
        font-size: 0.9rem;
        padding: 1rem 1.2rem;
        margin-top: 1rem;
        letter-spacing: 1px;
        width: 80%;
    }
    
    .work-modal-header {
        padding: 0.8rem 1rem;
    }
    
    .work-modal-logo .dc-logo {
        width: 35px;
        height: 35px;
    }
    
    .work-modal-close {
        width: 30px;
        height: 30px;
    }
    
    .work-modal-close span {
        width: 16px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button svg {
        width: 20px;
        height: 20px;
    }
    
    .title-line-1, .title-line-2, .cases-line-1, .cases-line-2, .contact-title {
        text-align: center !important;
        font-size: 2.7rem !important;
    }
    .cases-line-2 {
        margin-left: 0;
    }
    
    .services {
        padding: 3rem 1rem;
    }
    
    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem;
    }
    
    .submit-btn {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    .spiral-image {
        width: 200px;
    }
    
    .video-section {
        height: 70vh;
    }
    
    .video-background {
        width: 100vw;
        height: 70vh;
    }
    
    /* Mobile modal */
    .modal-container {
        width: 98%;
        max-width: none;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1.5rem 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-section {
        margin-bottom: 3rem;
    }
    
    .approach-card {
        padding: 1.5rem;
    }
    
    .approach-icon {
        font-size: 2.5rem;
    }
    
    .approach-card h3 {
        font-size: 1.3rem;
    }
    
    .case-image {
        height: 150px;
    }
    
    .case-content {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
    
    .modal-footer {
        padding: 1.5rem 2rem;
    }
    
    .social-links {
        gap: 2rem;
    }
    
    /* Mobile service modal */
    .service-modal-container {
        width: 98%;
        max-width: none;
        border-radius: 15px;
    }
    
    .service-modal-header {
        padding: 1.5rem 2rem;
    }
    
    .service-modal-content {
        padding: 1.5rem;
    }
    
    .service-modal-title {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .service-modal-number {
        font-size: 2.5rem;
    }
    
    .service-modal-name {
        font-size: 2rem;
    }
    
    .service-detail-section {
        margin-bottom: 2rem;
    }
    
    .service-detail-section h3 {
        font-size: 1.3rem;
    }
    
    .service-detail-section p {
        font-size: 1rem;
    }
    
    .product-showcase {
        padding: 3rem 0;
    }
    
    .contact {
        padding: 4rem 1rem;
    }
    
    .service-item {
        padding: 0.75rem;
    }
    
    .service-title {
        font-size: 1.6rem;
        height: auto;
        min-height: 2.4rem;
        line-height: 1.1;
    }
    
    .service-description {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .service-number {
        font-size: 2rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .social-links-contact {
        text-align: center;
    }
    
    .social-links-grid {
        justify-content: center;
        display: flex;
        margin: 0 auto;
    }
    
    .case-modal-container {
        width: 100%;
        max-width: none;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .case-modal-content {
        height: calc(100vh - 60px);
    }
    
    .case-modal-video {
        min-height: 300px;
    }
    
    .case-modal-video iframe {
        min-height: 300px;
    }
    
    .case-modal-header {
        padding: 0.5rem 1rem;
        height: 60px;
    }
    
    .case-modal-logo .dc-logo {
        width: 24px;
        height: 24px;
    }
    
    .case-modal-close {
        width: 22px;
        height: 22px;
    }
    
    .phone {
        color: #ffffff !important;
    }
}

@media (max-width: 320px) {
    .services {
        padding: 2rem 0.5rem;
    }
    
    .spiral-image {
        width: 150px;
    }
    
    .service-item {
        padding: 0.5rem;
    }
    
    .service-title {
        font-size: 1.1rem;
        min-height: 2.2rem;
    }
    
    .service-description {
        font-size: 0.65rem;
    }
    
    .service-number {
        font-size: 0.9rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .social-links-contact {
        text-align: center;
    }
    
    .social-links-grid {
        justify-content: center;
        display: flex;
        margin: 0 auto;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 3rem;
    }
    
    .case-modal-container {
        width: 100%;
        max-width: none;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .case-modal-content {
        height: calc(100vh - 50px);
    }
    
    .case-modal-video {
        min-height: 250px;
    }
    
    .case-modal-video iframe {
        min-height: 250px;
    }
    
    .case-modal-header {
        padding: 0.5rem 0.75rem;
        height: 50px;
    }
    
    .case-modal-logo .dc-logo {
        width: 20px;
        height: 20px;
    }
    
    .case-modal-close {
        width: 20px;
        height: 20px;
    }
}

/* Animación de trazo para SVG solo cuando tiene .animate */
.drawing-path {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
}
.drawing-path.animate {
  animation: draw-svg 3s cubic-bezier(0.77,0,0.18,1) forwards;
}

@keyframes draw-svg {
  to {
    stroke-dashoffset: 0;
  }
}

/* Animación de fill para el path principal del SVG */
.main-fill {
  transition: fill 1s cubic-bezier(0.77,0,0.18,1);
  fill: white;
}
.main-fill.fade-fill {
  fill: transparent;
}

/* Estilos responsivos para el SVG casos.svg */
@media (max-width: 1024px) {
    .cases-title {
        max-width: 80%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .cases-title {
        max-width: 90%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .cases-title {
        max-width: 95%;
        height: auto;
    }
}

@media (max-width: 320px) {
    .cases-title {
        max-width: 100%;
        height: auto;
    }
}

/* Orientación landscape para móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .case-modal-container {
        height: 100vh;
    }
    
    .case-modal-content {
        height: calc(100vh - 60px);
    }
    
    .case-modal-header {
        height: 60px;
        padding: 0.5rem 1rem;
    }
    
    .case-modal-video {
        min-height: 200px;
    }
    
    .case-modal-video iframe {
        min-height: 200px;
    }
}

/* Orientación portrait para móviles */
@media (max-width: 768px) and (orientation: portrait) {
    .case-modal-container {
        height: 100vh;
    }
    
    .case-modal-content {
        height: calc(100vh - 70px);
    }
    
    .case-modal-video {
        min-height: 350px;
    }
    
    .case-modal-video iframe {
        min-height: 350px;
    }
}

/* Desktop - 3 columnas para casos destacados */
@media (min-width: 1025px) {
    .case-card {
        flex: 0 0 33.3333%;
        width: 33.3333%;
    }
}

/* Mejoras generales para móviles */
@media (max-width: 768px) {
    /* Mejorar área táctil */
    .hamburger-menu {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .service-item {
        cursor: pointer;
        min-height: 44px;
    }
    
    .case-card {
        cursor: pointer;
        min-height: 44px;
    }
    
    /* Mejorar legibilidad */
    .service-description {
        line-height: 1.4;
    }
    
    .case-description {
        line-height: 1.4;
    }
    
    /* Optimizar formulario */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .submit-btn {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Success Modal Styles */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.success-modal-container {
    background: #111;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    padding: 2.5rem 2rem;
    max-width: 90vw;
    width: 400px;
    text-align: center;
    color: #fff;
}
.success-modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.success-modal-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.success-modal-close {
    background: #fff;
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.success-modal-close:hover {
    background: #222;
    color: #fff;
}
@media (max-width: 600px) {
    .success-modal-container {
        width: 95vw;
        padding: 1.5rem 0.5rem;
    }
    .success-modal-content h2 {
        font-size: 1.3rem;
    }
    .success-modal-content p {
        font-size: 1rem;
    }
    .success-modal-close {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
} 

.service-title, .service-description {
  color: #000 !important;
  transition: color 0.3s;
}
.main-services-container.dark .service-title,
.main-services-container.dark .service-description {
  color: #fff !important;
}

@media (max-width: 768px) {
    .cases-title-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        height: 44px;
        display: flex;
        align-items: center;
    }
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 20px;
    }
    .hamburger-icon span {
        margin: 0;
        height: 2px;
        width: 20px;
        background: #000;
        margin-bottom: 4px;
    }
    .hamburger-icon span:last-child {
        margin-bottom: 0;
    }
}