/* Base Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #ff3d00;
    --text-color: #000000;
    --light-text: #666666;
    --background: #ffffff;
    --light-background: #f5f5f5;
    --container-width: 1440px;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    color: var(--text-color);
    background: var(--background);
    overflow-x: hidden;
}

/* Fix mobile overflow issues */
* {
    max-width: 100%;
}

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

html {
    /* scroll-behavior: smooth; - Disabled to prevent conflicts with GSAP */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    line-height: 1.6;
}

/* Accent Text */
.accent-text {
    color: var(--accent-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1rem;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #666666;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        font-size: 1.1rem;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        mix-blend-mode: normal !important;
        isolation: isolate !important;
        overflow: hidden;
        gap: 0.5rem;
        padding-top: 15vh;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        color: #000000;
        margin: 0.5rem 0;
        padding: 0.8rem 1.5rem;
        border-radius: 1.5rem;
        transition: all 0.3s ease;
        text-decoration: none;
        font-weight: 500;
    }

    .nav-links a:hover {
        background: var(--accent-color);
        color: var(--secondary-color);
    }
}

.cta-button {
    padding: 0.75rem 1.5rem;
    border: 1px solid #000000;
    border-radius: 2rem;
    transition: all 0.3s ease;
    background: transparent;
    color: #000000;
    text-decoration: none;
}

.cta-button:hover,
.cta-button:focus,
.cta-button:active {
    opacity: 0.7;
    text-decoration: none;
}

/* Clean link styles */
a.cta-button:hover,
a.cta-button:focus,
a.cta-button:active,
a.cta-button:visited {
    opacity: 0.7;
    text-decoration: none;
}

.mobile-menu {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
}

.hero-text {
    margin-bottom: 4rem;
}

.split-text .line {
    display: block;
    overflow: hidden;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 4rem;
    font-size: 1.25rem;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--text-color);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* About Section */
.about {
    padding: 8rem 0;
}

.large-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 4rem;
}

.stat-text {
    font-size: 1.25rem;
    color: var(--light-text);
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--light-background);
}

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

.service-card {
    position: relative;
    padding: 2rem;
}

.service-number {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Work Section */
.work {
    padding: 8rem 0;
}

.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.work-item {
    grid-column: span 6;
    position: relative;
    transition: all 0.3s ease;
}

.work-item:hover {
    transform: translateY(-10px);
}

.work-item.featured {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.work-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 16/9;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

/* Project image placeholder styling */
.work-image.placeholder {
    background: linear-gradient(45deg, var(--light-background), #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-image.placeholder::after {
    content: "Imagen del Proyecto";
    color: var(--light-text);
    font-size: 0.9rem;
}

.work-info {
    padding: 2rem 0;
}

.work-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.work-info h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.work-info p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.work-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.work-link .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.work-link:hover .arrow {
    transform: translateX(5px);
}

.work-cta {
    text-align: center;
}

.button-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--text-color);
    border-radius: 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button-secondary:hover {
    background: var(--text-color);
    color: var(--background);
}

@media (max-width: 1024px) {
    .work-item.featured {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .work-grid {
        gap: 3rem;
    }

    .work-item {
        grid-column: span 12;
    }
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--light-background);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    margin-bottom: 4rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.submit-button {
    background: var(--text-color);
    color: var(--secondary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.submit-button:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: var(--light-background);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.footer-info p {
    color: var(--light-text);
    margin-top: 0.5rem;
}

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

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

.footer-contact,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Fix container padding for mobile */
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        font-size: 1.1rem;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        mix-blend-mode: normal !important;
        isolation: isolate !important;
        overflow: hidden;
        gap: 0.5rem;
        padding-top: 15vh;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        color: #000000;
        margin: 0.5rem 0;
        padding: 0.8rem 1.5rem;
        border-radius: 1.5rem;
        transition: all 0.3s ease;
        text-decoration: none;
        font-weight: 500;
    }

    .nav-links a:hover {
        background: var(--accent-color);
        color: var(--secondary-color);
    }

    /* Mobile navigation CTA button styling for white background */
    .nav-links .cta-button {
        border: 1px solid #000000;
        color: #000000;
        margin-top: 0.5rem;
    }

    .nav-links .cta-button:hover,
    .nav-links .cta-button:focus,
    .nav-links .cta-button:active,
    .nav-links a.cta-button:hover,
    .nav-links a.cta-button:focus,
    .nav-links a.cta-button:active {
        background: var(--accent-color);
        color: var(--secondary-color);
        border-color: var(--accent-color);
    }

    .mobile-menu {
        display: block !important;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10001;
        position: relative;
        width: 30px;
        height: 30px;
        padding: 5px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background: #000000;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
        pointer-events: none;
    }

    /* Ensure hamburger is visible when menu is open */
    .mobile-menu.active span {
        background: #000000;
    }

    /* Navbar is now using normal background, no mix-blend-mode issues */
    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* Hero Section Mobile */
    .hero {
        padding: 6rem 0 3rem;
        min-height: 80vh;
    }

    .hero-description {
        display: none; /* Remove hero description on mobile */
    }

    .hero-text {
        margin-bottom: 2rem;
    }

    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }

    h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
        line-height: 1.1;
    }

    h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* Services Section Mobile */
    .services {
        padding: 4rem 0;
    }

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

    .service-card {
        padding: 1.5rem;
        text-align: center;
    }

    /* About Section Mobile */
    .about {
        padding: 4rem 0;
    }

    .large-text {
        font-size: clamp(1.4rem, 6vw, 2rem);
        margin-bottom: 2rem;
    }

    /* Work Section Mobile */
    .work {
        padding: 4rem 0;
    }

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

    .work-item {
        grid-column: span 1;
    }

    .work-item.featured {
        grid-column: span 1;
        display: block;
        gap: 1rem;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .stat-item {
        padding: 1rem 0.5rem;
    }

    .stat-number {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.1;
    }

    .stat-item p {
        font-size: 0.9rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    /* Social Proof Section Mobile */
    .social-proof {
        padding: 3rem 0;
    }

    /* Process Section Mobile */
    .process {
        padding: 4rem 0;
    }

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

    /* Contact Section Mobile */
    .contact {
        padding: 4rem 0;
    }

    /* Footer Mobile */
    .footer {
        padding: 3rem 0 1rem;
    }

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

    .footer-contact,
    .footer-social {
        align-items: center;
    }

    /* Testimonials Mobile */
    .testimonials {
        padding: 0 1rem;
    }

    .testimonial-text {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        line-height: 1.5;
    }

    /* Pricing Mobile */
    .pricing {
        padding: 4rem 0;
    }

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

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    /* Work Grid Clean Mobile */
    .work-grid-clean {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Button Optimizations */
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .submit-button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Form Optimizations */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 1s ease-out forwards;
}

/* Social Proof Section */
.social-proof {
    padding: 8rem 0;
    background: var(--light-background);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.stat-item p {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

.testimonials {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    text-align: center;
}

.testimonial-text {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.4;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
}

.author-company {
    color: var(--light-text);
    font-weight: 500;
}

/* Process Section */
.process {
    padding: 8rem 0;
}

.process h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.process-item {
    position: relative;
}

.process-number {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    display: block;
}

.process-item h3 {
    margin-bottom: 1rem;
}

.process-item p {
    color: var(--light-text);
}

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

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 2rem;
    background: var(--light-background);
    border-radius: 1rem;
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.testimonial-item.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
}

.author-company {
    color: var(--light-text);
    font-weight: 500;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.prev-testimonial,
.next-testimonial {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-testimonial:hover,
.next-testimonial:hover {
    color: var(--accent-color);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

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

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

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    padding: 1rem;
    border-radius: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    font-size: 1.5rem;
}

.whatsapp-text {
    font-weight: 500;
    display: none;
}

.whatsapp-button:hover .whatsapp-text {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 1rem;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999;
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-text {
        display: none !important; /* Always hide text on mobile for cleaner look */
    }
}

/* Pricing Section */
.pricing {
    padding: 8rem 0;
    background: var(--light-background);
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--background);
    border-radius: 1rem;
    padding: 3rem 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-background);
}

.pricing-header h3 {
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-description {
    color: var(--light-text);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pricing-features i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.pricing-footer {
    text-align: center;
}

.pricing-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--text-color);
    color: var(--background);
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
}

.pricing-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.pricing-button.featured {
    background: var(--accent-color);
}

.pricing-note {
    color: var(--light-text);
    font-size: 0.9rem;
}

.pricing-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.info-card {
    text-align: center;
}

.info-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-card h4 {
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--light-text);
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto 4rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

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

@media (max-width: 768px) {
    .pricing {
        padding: 4rem 0;
    }

    .price {
        font-size: 2rem;
    }
}

/* Clean Work Grid - 4 Projects */
.work-grid-clean {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.work-item-clean {
    position: relative;
    transition: all 0.3s ease;
}

.work-item-clean:hover {
    transform: translateY(-10px);
}

.work-image-placeholder {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--light-background), #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid var(--light-background);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

/* Branded placeholder backgrounds for each project */
.work-image-placeholder[data-project="estudio56"] {
    background: linear-gradient(135deg, #8B4513, #D2B48C);
    color: white;
}

.work-image-placeholder[data-project="strasma360"] {
    background: linear-gradient(135deg, #FF3D00, #FF6B35);
    color: white;
}

.work-image-placeholder[data-project="calificatuprofe"] {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    color: white;
}

.work-image-placeholder[data-project="noticiasdm"] {
    background: linear-gradient(135deg, #1976D2, #64B5F6);
    color: white;
}

.work-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.work-image-placeholder img[src]:not([src=""]) {
    opacity: 1;
    z-index: 1;
}

.work-image-placeholder:hover img {
    transform: scale(1.05);
}

.work-item-clean:hover .work-image-placeholder {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.project-placeholder {
    color: inherit;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.work-image-placeholder:hover .project-placeholder {
    transform: scale(1.05);
}

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

/* Form Validation & Messages */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.checkbox-group.error {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.05);
}

.form-message {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s ease;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #28a745;
    color: #155724;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #dc3545;
    color: #721c24;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.message-content i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.submit-button:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Clean CTA button isolation from blend modes */
.cta-button,
.nav-links .cta-button,
a.cta-button {
    mix-blend-mode: normal !important;
    isolation: isolate !important;
} 