/* ==========================================================================
   STYLE SHEET FOR STUDIO REDHOUSE
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --brand-red: #bb2726;
    --brand-red-dark: #8e1b1a;
    --brand-red-light: #fbebeb;
    --brand-cyan: #009ddd;
    --brand-cyan-dark: #007bb0;
    --brand-cyan-light: #e6f6fc;
    --dark-charcoal: #121210;
    --cream-bg: #f3eae3;
    --warm-gray: #d0c9c3;
    --warm-gray-light: #eae5e0;
    --white: #ffffff;
    --whatsapp-green: #25d366;
    
    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(18, 18, 16, 0.05);
    --shadow-md: 0 10px 20px rgba(18, 18, 16, 0.08);
    --shadow-lg: 0 20px 40px rgba(18, 18, 16, 0.12);
    --shadow-red: 0 10px 25px rgba(187, 39, 38, 0.25);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--cream-bg);
    color: var(--dark-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--cream-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--warm-gray);
    border-radius: var(--radius-full);
    border: 2px solid var(--cream-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red);
}

/* Selection Color */
::selection {
    background-color: var(--brand-red);
    color: var(--white);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-weight: 400;
    line-height: 1.1;
}

p {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(18, 18, 16, 0.8);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Utility Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background-color: var(--brand-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(187, 39, 38, 0.35);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.btn-secondary:hover {
    background-color: var(--brand-red-light);
    transform: translateY(-3px);
}

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

.btn-cyan:hover {
    background-color: var(--brand-cyan-dark);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #20ba59;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(243, 234, 227, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(208, 201, 195, 0.3);
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 8px 0;
    background-color: rgba(243, 234, 227, 0.95);
    box-shadow: var(--shadow-sm);
}

header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    transition: var(--transition-normal);
}

header.scrolled .navbar {
    padding: 10px 24px;
}

header .logo img {
    height: 40px;
    display: block;
    transition: var(--transition-normal);
}

header.scrolled .logo img {
    height: 34px;
}

header .nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

header .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-charcoal);
    position: relative;
    padding: 8px 0;
}

header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-red);
    transition: var(--transition-fast);
}

header .nav-link:hover {
    color: var(--brand-red);
}

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

header .nav-link.active {
    color: var(--brand-red);
    font-weight: 600;
}

/* Burger menu */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--dark-charcoal);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    font-size: 1.1rem;
    color: var(--brand-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.hero-title {
    font-size: 5rem;
    color: var(--dark-charcoal);
    line-height: 1;
    margin-bottom: 24px;
}

.hero-title span.red-text {
    color: var(--brand-red);
}

.hero-title span.blue-text {
    color: var(--brand-cyan);
    font-family: var(--font-body);
    font-size: 2.8rem;
    font-weight: 300;
    display: block;
    letter-spacing: normal;
    text-transform: none;
    margin-top: -5px;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(18, 18, 16, 0.85);
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Experience Callout */
.experience-callout {
    border-top: 1px solid var(--warm-gray);
    padding-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--brand-red);
    line-height: 1;
}

.exp-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-charcoal);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.08));
    animation: float 6s ease-in-out infinite;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    font-size: 28px;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Brand Stripes Divider */
.brand-divider {
    height: 12px;
    display: flex;
    width: 100%;
}

.stripe-red {
    background-color: var(--brand-red);
    flex: 3;
}

.stripe-cyan {
    background-color: var(--brand-cyan);
    flex: 1;
}

.stripe-cream {
    background-color: var(--warm-gray-light);
    flex: 0.5;
}

/* Section Header & Flanking side-images */
.section-header {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.flanking-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 120px;
}

.flanking-img {
    position: absolute;
    top: 50%;
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.85;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.07));
}

.flanking-img.left {
    left: 2%;
    transform: translateY(-50%);
    animation: float-left-subtle 6s ease-in-out infinite;
}

.flanking-img.right {
    right: 2%;
    transform: translateY(-50%);
    animation: float-right-subtle 6s ease-in-out infinite;
}

@keyframes float-left-subtle {
    0% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-62%) rotate(-5deg); }
    100% { transform: translateY(-50%) rotate(0deg); }
}

@keyframes float-right-subtle {
    0% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-38%) rotate(5deg); }
    100% { transform: translateY(-50%) rotate(0deg); }
}

@media (max-width: 992px) {
    .flanking-wrapper {
        padding: 0 80px;
    }
    .flanking-img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .flanking-wrapper {
        padding: 0;
    }
    .flanking-img {
        display: none; /* Keep layouts pristine on smaller screens */
    }
}

.section-tag {
    font-family: var(--font-body);
    color: var(--brand-cyan);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 3.5rem;
    color: var(--brand-red);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: rgba(18, 18, 16, 0.8);
    margin-top: 15px;
}

/* Nosotros Section */
.nosotros {
    background-color: var(--white);
}

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

.nosotros-tag {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--brand-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.nosotros-title {
    font-size: 3rem;
    color: var(--brand-red);
    margin-bottom: 24px;
    line-height: 1.1;
}

.nosotros-desc {
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.sector-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.sector-card {
    background-color: var(--cream-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--brand-red);
    transition: var(--transition-normal);
}

.sector-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.sector-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.sector-icon {
    font-size: 28px;
    color: var(--brand-red);
    background-color: var(--brand-red-light);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sector-card h3 {
    font-size: 1.8rem;
    color: var(--dark-charcoal);
}

.sector-card p {
    font-size: 0.95rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(208, 201, 195, 0.3);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--brand-cyan);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(187, 39, 38, 0.1);
}

.service-card:hover::before {
    background-color: var(--brand-red);
    height: 6px;
}

.service-icon-box {
    background-color: var(--brand-cyan-light);
    color: var(--brand-cyan);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon-box {
    background-color: var(--brand-red-light);
    color: var(--brand-red);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--dark-charcoal);
    margin-bottom: 16px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-bullets {
    list-style: none;
    border-top: 1px solid var(--cream-bg);
    padding-top: 16px;
}

.service-bullets li {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(18, 18, 16, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.service-bullets li::before {
    content: '—';
    color: var(--brand-red);
}

/* Portafolio Section (Home preview) */
.portfolio {
    background-color: var(--white);
    overflow: hidden;
}

.portfolio-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.portfolio-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.portfolio-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

.portfolio-item {
    min-width: calc(33.333% - 20px);
    width: calc(33.333% - 20px);
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-bg);
    background: var(--white);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portfolio-img-box {
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    position: relative;
    background-color: var(--cream-bg);
    overflow: hidden;
}

.portfolio-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-img-box img {
    transform: scale(1.08);
}

.portfolio-info {
    padding: 24px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-info h3 {
    font-size: 1.6rem;
    color: var(--dark-charcoal);
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: rgba(18, 18, 16, 0.6);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--cream-bg);
    border: 1px solid var(--warm-gray);
    color: var(--dark-charcoal);
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slider-btn:hover {
    background-color: var(--brand-red);
    color: var(--white);
    border-color: var(--brand-red);
}

.slider-btn.prev {
    left: -10px;
}

.slider-btn.next {
    right: -10px;
}

.portfolio-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--warm-gray);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--brand-red);
    width: 24px;
}

.portfolio-actions {
    margin-top: 40px;
}

/* Proceso Section */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 4px;
    background-color: var(--warm-gray);
}

.process-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 60px;
}

.process-item:last-child {
    margin-bottom: 0;
}

.process-num {
    position: absolute;
    left: 20px;
    top: 0;
    width: 44px;
    height: 44px;
    background-color: var(--brand-red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--cream-bg);
    box-shadow: 0 0 0 2px var(--brand-red);
    z-index: 2;
    transition: var(--transition-normal);
}

.process-item:hover .process-num {
    transform: scale(1.15);
    background-color: var(--brand-cyan);
    box-shadow: 0 0 0 2px var(--brand-cyan);
}

.process-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(208, 201, 195, 0.3);
    transition: var(--transition-normal);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 157, 221, 0.2);
}

.process-card h3 {
    font-size: 1.8rem;
    color: var(--brand-red);
    margin-bottom: 12px;
}

.process-item:hover .process-card h3 {
    color: var(--brand-cyan);
}

.process-card p {
    font-size: 1rem;
}

/* Clientes Section with real image logos */
.clientes {
    background-color: var(--white);
    padding: 80px 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.marquee {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 60px;
    animation: scroll-marquee 25s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.client-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    min-width: 160px;
}

.client-logo {
    max-height: 55px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: var(--transition-fast);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Contacto Section */
.contacto {
    position: relative;
}

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

.contacto-info {
    position: sticky;
    top: 120px;
}

.contacto-title {
    font-size: 3.5rem;
    color: var(--brand-red);
    margin-bottom: 24px;
    line-height: 1.1;
}

.contacto-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contacto-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contacto-icon {
    width: 50px;
    height: 50px;
    background-color: var(--brand-red-light);
    color: var(--brand-red);
    border-radius: var(--radius-full);
    font-size: 20px;
    transition: var(--transition-normal);
}

.contacto-item:hover .contacto-icon {
    background-color: var(--brand-cyan-light);
    color: var(--brand-cyan);
    transform: scale(1.1);
}

.contacto-text h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(18, 18, 16, 0.5);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.contacto-text p {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-charcoal);
}

.contacto-form-container {
    background-color: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(208, 201, 195, 0.3);
}

.hubspot-form-wrap {
    min-height: 380px;
}

/* Standalone Portfolio Page CSS (Split Hero grid style) */
.portfolio-page header {
    background-color: rgba(243, 234, 227, 0.95);
    box-shadow: var(--shadow-sm);
}

.portfolio-hero {
    position: relative;
    background-color: var(--cream-bg);
    padding: 180px 0 80px 0;
    border-bottom: 1px solid rgba(208, 201, 195, 0.3);
}

.portfolio-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.portfolio-hero-content {
    text-align: left;
}

.portfolio-hero-title {
    font-size: 5.5rem;
    color: var(--brand-red);
    margin-bottom: 20px;
    line-height: 1;
}

.portfolio-hero-desc {
    font-size: 1.15rem;
    color: rgba(18, 18, 16, 0.75);
    margin-bottom: 0;
}

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

.portfolio-hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.08));
    animation: float 6s ease-in-out infinite;
}

.portfolio-full {
    background-color: var(--white);
}

.portfolio-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.portfolio-tab {
    background-color: var(--cream-bg);
    border: 1px solid var(--warm-gray);
    color: var(--dark-charcoal);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
}

.portfolio-tab:hover,
.portfolio-tab.active {
    background-color: var(--brand-red);
    color: var(--white);
    border-color: var(--brand-red);
    box-shadow: var(--shadow-red);
}

.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(208, 201, 195, 0.3);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

.portfolio-card.active {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(187, 39, 38, 0.15);
}

.portfolio-card-img {
    position: relative;
    padding-bottom: 125%; /* 4:5 vertical aspect ratio */
    overflow: hidden;
    background-color: var(--cream-bg);
}

.portfolio-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-img img {
    transform: scale(1.06);
}

.portfolio-card-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-cyan);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.portfolio-card-info h3 {
    font-size: 1.6rem;
    color: var(--dark-charcoal);
    margin-bottom: 10px;
    line-height: 1.2;
}

.portfolio-card-info p {
    font-size: 0.95rem;
    color: rgba(18, 18, 16, 0.7);
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: var(--brand-red);
    color: var(--white);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--brand-cyan);
}

.footer-col.about p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--brand-cyan);
    padding-left: 6px;
}

.footer-info {
    list-style: none;
}

.footer-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-info i {
    color: var(--brand-cyan);
    font-size: 18px;
    margin-top: 3px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: var(--white);
}

.social-link:hover {
    background-color: var(--brand-cyan);
    transform: translateY(-3px);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-title span.blue-text {
        font-size: 2.2rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-item {
        min-width: calc(50% - 15px);
        width: calc(50% - 15px);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-hero-title {
        font-size: 4rem;
    }
    .portfolio-hero-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .experience-callout {
        justify-content: center;
    }
    .nosotros-grid {
        grid-template-columns: 1fr;
    }
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contacto-info {
        position: relative;
        top: 0;
    }
    .contacto-form-container {
        padding: 30px;
    }
    .portfolio-hero-title {
        font-size: 3.2rem;
    }
    .portfolio-tabs {
        gap: 8px;
        margin-bottom: 30px;
    }
    .portfolio-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .portfolio-hero-content {
        text-align: center;
    }
    
    /* Navigation burger */
    .burger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--cream-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-normal);
        border-top: 1px solid var(--warm-gray);
        z-index: 999;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-menu .btn {
        margin-top: 20px;
    }
    
    .burger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.open span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-title span.blue-text {
        font-size: 1.8rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item {
        min-width: 100%;
        width: 100%;
    }
    .portfolio-slider-container {
        padding: 0 15px;
    }
    .slider-btn.prev {
        left: -5px;
    }
    .slider-btn.next {
        right: -5px;
    }
    .process-timeline::before {
        left: 20px;
    }
    .process-item {
        padding-left: 50px;
    }
    .process-num {
        left: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid-full {
        grid-template-columns: 1fr;
    }
    .portfolio-hero-title {
        font-size: 2.5rem;
    }
}
