:root {
    --e3-navy: #0d2b4a;
    --e3-navy-dark: #071a2e;
    --e3-teal: #00b4c5;
    --e3-teal-light: #00d4e8;
    --e3-gray: #8e8e8e;
    --e3-bg: #f8f9fb;
    --e3-white: #ffffff;
    --e3-border: #e5e7eb;
    --e3-text: #1f2937;
    --gradient-brand: linear-gradient(135deg, var(--e3-teal-light), var(--e3-teal));
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--e3-bg);
    color: var(--e3-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--e3-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 48px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--e3-navy);
    letter-spacing: 0.02em;
}

.brand-text span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--e3-gray);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    transition: color 0.2s;
}

.main-nav a:hover { color: var(--e3-teal); }

.btn-cta {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    padding: 10px 20px;
    min-height: 44px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 180, 197, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--e3-navy);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
}

body.modal-open {
    overflow: hidden;
}

/* Hero */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--e3-navy-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.hero-carousel-slide.active {
    opacity: 1;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-waves {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 45%;
    min-height: 180px;
}

.hero-wave--back {
    animation: waveDrift 18s linear infinite;
}

.hero-wave--front {
    animation: waveDrift 14s linear infinite reverse;
    opacity: 0.85;
}

@keyframes waveDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-color: #0d2b4a;
    opacity: 0.85;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 96px 0;
}

.hero-wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 4;
    line-height: 0;
    pointer-events: none;
}

.hero-wave-divider svg {
    display: block;
    width: 100%;
    height: 90px;
}

.hero-tag {
    display: inline-block;
    color: var(--e3-teal-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Sections */
section { padding: 80px 0; }

#proyectos {
    padding-top: 48px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--e3-navy);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--e3-gray);
    max-width: 560px;
    margin: 0 auto;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-brand);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Filters */
.filters-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.filters-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.filter-btn--clear {
    border-color: #ef4444;
    color: #ef4444;
    background: #fff;
}

.filter-btn--clear:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}

.filters-card {
    background: var(--e3-white);
    border: 1px solid var(--e3-border);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(13, 43, 74, 0.06);
}

.filters-card--principal {
    border-left: 4px solid var(--e3-teal);
    background: rgba(0, 180, 197, 0.04);
}

.filters-card-label {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--e3-navy);
}

.filters-card-label i {
    color: var(--e3-teal);
    margin-right: 4px;
}

.filters-card .filters {
    justify-content: flex-start;
    margin-bottom: 0;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--e3-border);
    background: var(--e3-white);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--e3-navy);
    color: #fff;
    border-color: var(--e3-navy);
}

.filter-btn--principal {
    border-color: var(--e3-teal);
    background: rgba(0, 180, 197, 0.08);
    color: var(--e3-navy);
}

.filter-btn--principal i {
    color: var(--e3-teal);
    font-size: 0.75rem;
}

.filter-btn--principal:hover {
    background: rgba(0, 180, 197, 0.15);
    border-color: var(--e3-teal);
    color: var(--e3-navy);
}

.filter-btn--principal.active {
    background: linear-gradient(135deg, var(--e3-navy), var(--e3-teal));
    border-color: var(--e3-teal);
    color: #fff;
}

.filter-btn--principal.active i {
    color: #fff;
}

/* Projects list — full width col-12 */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.col-12 { width: 100%; }

.project-card {
    background: var(--e3-white);
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(13, 43, 74, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(13, 43, 74, 0.12);
}

.project-card-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.project-carousel-wrap {
    position: relative;
    background: #e5e7eb;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
    aspect-ratio: 16 / 9;
}

.project-carousel-wrap .e3-carousel {
    height: 100%;
}

.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.project-card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
}

.project-card-body h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--e3-navy);
    margin-bottom: 12px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.85rem;
    color: var(--e3-gray);
    margin-bottom: 16px;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-meta span i {
    color: var(--e3-teal);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.project-card-body p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-ver-proyecto {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-cta-block {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Carousel shared */
.e3-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-slide--fallback img {
    object-fit: contain;
    padding: 24px;
    box-sizing: border-box;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(13, 43, 74, 0.75);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: var(--e3-teal);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--e3-teal-light);
    border-color: var(--e3-teal-light);
}

/* Quote section */
.quote-section {
    background: linear-gradient(135deg, var(--e3-navy) 0%, #071a2e 60%, rgba(0, 180, 197, 0.2) 100%);
    color: #fff;
}

.section-header-light h2,
.section-header-light p {
    color: #fff;
}

.section-line-light {
    background: var(--e3-teal-light);
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.quote-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.quote-info p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 24px;
}

.contacto-mapa-wrap {
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

#mapaEstudio {
    height: 220px;
    width: 100%;
    z-index: 1;
}

.contacto-mapa-info {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contacto-mapa-direccion {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
}

.btn-como-llegar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.btn-como-llegar:hover {
    background: var(--e3-teal-light);
    border-color: var(--e3-teal-light);
    color: var(--e3-navy);
    text-decoration: none;
}

.quote-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quote-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.quote-benefits i {
    color: var(--e3-teal-light);
}

.quote-form {
    background: var(--e3-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.quote-form .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--e3-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
}

.quote-form .form-group select:focus {
    outline: none;
    border-color: var(--e3-teal);
}

/* Legacy grid alias */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-card-img {
    display: none;
}

/* About */
.about-section {
    background: var(--e3-white);
}

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

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--e3-navy);
    margin-bottom: 20px;
}

.about-text p {
    color: #4b5563;
    margin-bottom: 16px;
}

.about-visual {
    background: var(--e3-navy);
    border-radius: 16px;
    padding: 32px 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.about-visual::after {
    content: 'E3';
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 180px;
    font-weight: 900;
    opacity: 0.06;
    line-height: 1;
}

.about-stat {
    margin-bottom: 0;
    text-align: center;
}

.about-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--e3-teal-light);
}

.about-stat span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Team */
.team-section {
    background: var(--e3-bg);
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-card {
    background: var(--e3-white);
    border-radius: 16px;
    padding: 28px 24px 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(13, 43, 74, 0.06);
    border: 1px solid var(--e3-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(13, 43, 74, 0.1);
}

.team-card-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--e3-teal);
    background: #f3f4f6;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--e3-navy);
    margin: 0 0 10px;
}

.team-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

.btn-whatsapp-contacto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: #25d366;
    border: 2px solid #25d366;
    transition: background 0.2s, color 0.2s;
}

.btn-whatsapp-contacto:hover {
    background: #25d366;
    color: #fff;
}

@media (max-width: 992px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-section { padding: 56px 0; }
}

/* Contact */
.contact-section { background: var(--e3-bg); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--e3-navy);
    margin-bottom: 16px;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 24px;
}

.contact-form {
    background: var(--e3-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(13, 43, 74, 0.08);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--e3-navy);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--e3-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Footer */
.site-footer {
    background: var(--e3-navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 0 max(16px, env(safe-area-inset-bottom));
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.footer-brand img { height: 40px; }

.footer-copy {
    font-size: 0.85rem;
    text-align: right;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal proyecto */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-proyecto {
    background: var(--e3-white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--e3-navy);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--e3-border);
    padding: 0 24px;
    margin-top: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-tab {
    padding: 12px 20px;
    min-height: 44px;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--e3-gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    flex-shrink: 0;
    white-space: nowrap;
}

.modal-tab.active {
    color: var(--e3-teal);
    border-bottom-color: var(--e3-teal);
}

.modal-body { padding: 24px; }

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.modal-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.plano-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--e3-border);
    border-radius: 8px;
    margin-bottom: 10px;
}

.plano-item a {
    color: var(--e3-teal);
    font-weight: 600;
}

.video-item video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Share dropdown */
.share-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.share-trigger {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--e3-navy);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(13, 43, 74, 0.2);
}

.share-trigger:hover {
    background: var(--e3-teal);
    transform: scale(1.05);
}

.share-wrap.open {
    z-index: 200;
}

.share-wrap.open .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(13, 43, 74, 0.18);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 201;
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    transition: background 0.15s;
}

.share-menu-item:hover {
    background: #f3f4f6;
}

.share-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.share-menu-item[data-action="whatsapp"] i { color: #25D366; }
.share-menu-item[data-action="facebook"] i { color: #1877F2; }
.share-menu-item[data-action="instagram"] i { color: #E4405F; }
.share-menu-item[data-action="copy"] i { color: #6b7280; }

.project-card-actions .share-menu {
    right: 0;
    left: auto;
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(6px);
}

.project-card-actions .share-wrap.open .share-menu {
    transform: translateY(0);
}

.proyecto-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.proyecto-info-header h1 {
    margin-bottom: 0;
    flex: 1;
}

.project-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    overflow: visible;
}

.project-card-actions .btn-ver-proyecto,
.project-card-actions .btn-cotizar-card {
    min-height: 44px;
    height: 44px;
    padding: 0 18px;
    font-size: 0.9rem;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: auto;
}

.btn-cotizar-card {
    padding: 10px 18px;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* Proyectos DataTable público (filas tipo card) */
.proyectos-dt-section {
    margin-bottom: 2.5rem;
}

.proyectos-dt-section--destacados {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 32px;
}

.proyectos-dt-section--destacados .proyectos-dt-section-title {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-left: 4px solid var(--e3-teal);
    padding-left: 12px;
}

.proyectos-dt-section--destacados .proyectos-dt-section-title i {
    color: var(--e3-teal);
    margin-right: 8px;
    font-size: 0.85em;
}

.proyectos-dt-section--categoria-principal,
.proyectos-dt-section--por-categoria {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 32px;
}

.proyectos-dt-section-title--categoria {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-left: 4px solid var(--e3-teal);
    padding-left: 12px;
    color: var(--e3-navy);
}

.about-tech {
    margin-top: 24px;
}

.about-tech-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--e3-navy);
    margin: 0 0 12px;
}

.about-tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100px, 28vw), 1fr));
    gap: 16px;
}

.about-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(0, 180, 197, 0.08);
    border: 1px solid rgba(0, 180, 197, 0.25);
    border-radius: 12px;
    min-width: 0;
}

.about-tech-icon-wrap {
    width: 100%;
    max-width: clamp(40px, 18vw, 72px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-tech-icon {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.about-tech-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--e3-navy);
    line-height: 1.25;
}

.about-tech-item:not(:has(.about-tech-icon)) {
    justify-content: center;
    min-height: 56px;
}

.about-tech-item:not(:has(.about-tech-icon)) .about-tech-name {
    font-size: 0.9rem;
    padding: 4px 8px;
}

.proyectos-dt-separator {
    display: none;
    height: 4px;
    width: 100%;
    margin: 48px 0 40px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--e3-teal) 20%, var(--e3-teal-light) 50%, var(--e3-teal) 80%, transparent 100%);
    border: none;
}

.proyectos-dt-separator.is-visible {
    display: block;
}

.proyectos-dt-separator--entre-categorias {
    display: block;
    margin: 40px 0 36px;
}

.proyectos-dt-section--general {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.proyectos-dt-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--e3-navy);
    margin: 0 0 20px;
}

.table-proyectos-publico {
    background: transparent;
    border: none;
    margin-bottom: 0;
}

.table-proyectos-cards thead {
    display: none;
}

.table-proyectos-cards tbody tr {
    background: transparent;
}

.table-proyectos-cards tbody tr:hover {
    background: transparent;
}

.table-proyectos-cards tbody,
.table-proyectos-cards tbody tr,
.table-proyectos-cards tbody td {
    overflow: visible;
}

.table-proyectos-cards tbody tr:has(.share-wrap.open) {
    position: relative;
    z-index: 20;
}

.table-proyectos-cards tbody td {
    padding: 0 0 32px;
    border: none;
    vertical-align: top;
}

.table-proyectos-cards .project-card {
    width: 100%;
    margin: 0;
}

.table-proyectos-cards .col-proy-card {
    width: 100% !important;
}

.proyectos-dt-wrap {
    max-width: 100%;
}

.proyectos-dt-wrap.table-responsive {
    overflow: visible;
}

.proyectos-dt-wrap .dataTables_wrapper {
    max-width: 100%;
    min-width: 0;
}

.proyectos-dt-wrap .proy-dt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.proyectos-dt-wrap .proy-dt-toolbar .dataTables_length,
.proyectos-dt-wrap .proy-dt-toolbar .dataTables_filter {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.proyectos-dt-wrap .proy-dt-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--e3-border);
}

.proyectos-dt-wrap .proy-dt-footer .dataTables_info,
.proyectos-dt-wrap .proy-dt-footer .dataTables_paginate {
    float: none !important;
}

.proyectos-dt-wrap .proy-dt-footer .dataTables_info {
    order: 1;
    flex: 1 1 auto;
    min-width: 200px;
    padding-top: 0;
    white-space: normal;
}

.proyectos-dt-wrap .proy-dt-footer .dataTables_paginate {
    order: 2;
    flex: 0 0 auto;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: auto;
    margin-left: 0;
    box-sizing: border-box;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_length select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    min-width: 64px;
    width: auto;
    appearance: auto;
    -webkit-appearance: menulist;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_filter input:focus,
.proyectos-dt-wrap .dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: var(--e3-teal);
    box-shadow: 0 0 0 3px rgba(0, 180, 197, 0.15);
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_filter label,
.proyectos-dt-wrap .dataTables_wrapper .dataTables_length label,
.proyectos-dt-wrap .dataTables_wrapper .dataTables_info {
    color: var(--e3-navy);
    font-size: 0.9rem;
    font-weight: 500;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    margin: 0;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: right;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .pagination {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .page-item {
    list-style: none;
    margin: 0;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .paginate_button,
.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: var(--e3-navy) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .page-link:hover {
    background: rgba(0, 180, 197, 0.1) !important;
    border-color: var(--e3-teal) !important;
    color: var(--e3-navy) !important;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background: var(--e3-navy) !important;
    border-color: var(--e3-navy) !important;
    color: #fff !important;
}

.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .proyectos-dt-wrap .proy-dt-toolbar,
    .proyectos-dt-wrap .proy-dt-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .proyectos-dt-wrap .proy-dt-footer .dataTables_info,
    .proyectos-dt-wrap .proy-dt-footer .dataTables_paginate {
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .proyectos-dt-wrap .dataTables_wrapper .dataTables_filter,
    .proyectos-dt-wrap .dataTables_wrapper .dataTables_length {
        text-align: left;
        width: 100%;
    }

    .proyectos-dt-wrap .dataTables_wrapper .dataTables_filter label {
        flex-direction: column;
        align-items: stretch;
    }

    .proyectos-dt-wrap .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        min-width: 0;
    }

    .proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .pagination {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 4px;
    }

    .proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .paginate_button,
    .proyectos-dt-wrap .dataTables_wrapper .dataTables_paginate .page-link {
        min-width: 32px;
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

/* Video cards grid */
.video-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.video-card {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--e3-navy) 0%, #071a2e 100%);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 43, 74, 0.2);
}

.video-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.video-card-play i {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--e3-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    padding-left: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.video-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Video modal */
.video-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-box {
    position: relative;
    background: #111;
    border-radius: 16px;
    max-width: 960px;
    width: 100%;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-box h4 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 12px;
    padding-right: 40px;
}

.video-modal-box video {
    width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Plano cards + modal */
.plano-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.plano-card {
    border: 1px solid var(--e3-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.plano-card:hover {
    box-shadow: 0 8px 24px rgba(13, 43, 74, 0.12);
    transform: translateY(-2px);
}

.plano-card-preview {
    position: relative;
    aspect-ratio: 4/3;
    background: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.plano-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.plano-card-pdf-icon {
    text-align: center;
    color: var(--e3-teal);
    padding: 16px;
}

.plano-card-pdf-icon i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.plano-card-pdf-icon span {
    font-size: 0.75rem;
    color: var(--e3-gray);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.plano-card-body {
    padding: 12px;
}

.plano-card-body strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--e3-navy);
}

.plano-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.plano-card-ver {
    flex: 1;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.plano-card-ver:hover {
    opacity: 0.9;
    color: #fff;
}

.plano-card-download {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--e3-border);
    color: var(--e3-teal);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.plano-card-download:hover {
    background: #f0fdff;
    color: var(--e3-teal);
    text-decoration: none;
}

.plano-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.plano-modal-overlay.active {
    display: flex;
}

.plano-modal-box {
    position: relative;
    background: #111;
    border-radius: 16px;
    max-width: 960px;
    width: 100%;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.plano-modal-box h4 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 12px;
    padding-right: 40px;
}

#planoModalBody {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

#planoModalBody iframe,
#planoModalBody img {
    width: 100%;
    max-height: 70vh;
    border: none;
    display: block;
}

#planoModalBody iframe {
    min-height: 60vh;
    background: #fff;
}

.plano-modal-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--e3-teal-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.plano-modal-download:hover {
    color: #fff;
    text-decoration: none;
}

.plano-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--e3-gray);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--e3-gray);
}

/* Página detalle proyecto */
.proyecto-detalle {
    padding: 32px 0 80px;
    background: var(--e3-bg);
}

.proyecto-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--e3-gray);
    margin-bottom: 24px;
}

.proyecto-breadcrumb a {
    color: var(--e3-teal);
    text-decoration: none;
}

.proyecto-breadcrumb a:hover {
    text-decoration: underline;
}

.proyecto-hero-carousel {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(13, 43, 74, 0.12);
}

.proyecto-info-card {
    background: var(--e3-white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(13, 43, 74, 0.06);
}

.proyecto-info-card h1 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    color: var(--e3-navy);
    margin-bottom: 12px;
    font-weight: 800;
}

.proyecto-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 0.9rem;
    color: var(--e3-gray);
    margin-bottom: 20px;
}

.proyecto-info-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.proyecto-descripcion {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 24px;
}

.proyecto-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-e3-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--e3-teal);
    color: var(--e3-teal);
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-e3-outline:hover {
    background: var(--e3-teal);
    color: #fff;
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid var(--e3-border);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.detail-tab {
    padding: 12px 24px;
    min-height: 44px;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--e3-gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    flex-shrink: 0;
    white-space: nowrap;
}

.detail-tab.active {
    color: var(--e3-teal);
    border-bottom-color: var(--e3-teal);
}

.detail-panel {
    background: var(--e3-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(13, 43, 74, 0.06);
}

.detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.detail-gallery-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    height: auto;
    display: block;
    border-radius: 8px;
}

.proyecto-detalle video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Widget redes sociales */
.redes-sociales-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
}

.boton-redes-principal {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4e8, #00b4c5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 180, 197, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s;
}

.boton-redes-principal:hover {
    transform: scale(1.1);
}

.boton-redes-principal i {
    font-size: 24px;
    color: #fff;
}

.redes-lista {
    position: absolute;
    bottom: 75px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.redes-lista.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.red-item {
    width: auto;
    min-width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    padding: 0 16px 0 12px;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.red-item:hover {
    transform: translateX(-2px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.red-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.red-item-with-label {
    width: auto;
    min-width: 44px;
    height: 44px;
    border-radius: 999px;
    padding: 0 16px 0 12px;
    gap: 10px;
    justify-content: flex-start;
}

.red-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.red-whatsapp { background: #25D366; }
.red-instagram { background: linear-gradient(135deg, #E4405F, #833AB4); }
.red-email { background: #374151; }
.red-facebook { background: #1877F2; }
.red-phone { background: #0d2b4a; }
.red-twitter { background: #1DA1F2; }

/* Tablet landscape */
@media (max-width: 992px) {
    section { padding: 60px 0; }

    .about-grid {
        gap: 40px;
    }

    .quote-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-card-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .project-carousel-wrap {
        border-radius: 16px 16px 0 0;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .main-nav { display: none; }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        border-bottom: 1px solid var(--e3-border);
        box-shadow: 0 12px 24px rgba(13, 43, 74, 0.12);
        z-index: 1001;
        gap: 12px;
    }

    .main-nav.open a {
        width: 100%;
        text-align: center;
        padding: 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav.open .btn-cta {
        width: 100%;
    }

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

    .hero { min-height: 70vh; }

    .hero-content { padding: 72px 0; }

    .hero-wave-divider svg { height: 60px; }

    .hero-wave { min-height: 120px; }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-cta,
    .hero-actions .btn-outline-light {
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section-header h2 { font-size: 1.6rem; }

    .proyectos-dt-section--destacados .proyectos-dt-section-title,
    .proyectos-dt-section-title--categoria {
        font-size: 1.2rem;
        letter-spacing: 0.01em;
        white-space: normal;
        display: block;
        padding: 10px 14px;
        border-radius: 8px;
        border-left: 4px solid var(--e3-teal);
        background: rgba(0, 180, 197, 0.12);
        color: var(--e3-navy);
    }

    .proyectos-dt-section--destacados .proyectos-dt-section-title i {
        font-size: 1em;
        margin-right: 0;
    }

    .about-grid,
    .contact-grid,
    .quote-grid,
    .form-row { grid-template-columns: 1fr; }

    .about-tech-list {
        grid-template-columns: repeat(auto-fill, minmax(min(88px, 22vw), 1fr));
        gap: 12px;
    }

    .about-tech-icon-wrap {
        max-width: clamp(36px, 16vw, 56px);
    }

    .project-card-body { padding: 24px; }

    .project-card-body h3 { font-size: 1.25rem; }

    .project-card-actions {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .project-card-actions .btn-ver-proyecto,
    .project-card-actions .btn-cotizar-card {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 10px;
        font-size: 0.85rem;
    }

    .project-card-actions .share-wrap {
        flex-shrink: 0;
    }

    .project-card-actions .share-trigger {
        width: 44px;
        height: 44px;
    }

    .about-text h2 { font-size: 1.6rem; }

    .project-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Phone */
@media (max-width: 576px) {
    .container { padding: 0 16px; }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    section { padding: 48px 0; }

    .brand-text span { letter-spacing: 0.12em; }

    .filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 32px;
    }

    .filter-btn { flex-shrink: 0; }

    .contact-form { padding: 20px; }

    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-proyecto {
        max-height: 92vh;
        border-radius: 12px 12px 0 0;
        align-self: flex-end;
    }

    .modal-tabs { padding: 0 16px; }

    .modal-body { padding: 16px; }

    .modal-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .redes-sociales-container {
        bottom: 20px;
        left: 16px;
    }

    .boton-redes-principal {
        width: 52px;
        height: 52px;
    }

    .red-item-with-label {
        height: 40px;
        padding: 0 14px 0 10px;
    }

    .red-label {
        font-size: 12px;
    }

    .red-item {
        min-width: 40px;
        height: 40px;
        padding: 0 14px 0 10px;
    }

    .red-item i {
        font-size: 16px;
    }

    .proyecto-detalle { padding: 24px 0 60px; }
}

/* Phone small */
@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }

    .hero p { font-size: 1rem; }

    .brand-text span { display: none; }

    .proyectos-dt-section--destacados .proyectos-dt-section-title,
    .proyectos-dt-section-title--categoria {
        font-size: 1.1rem;
        padding: 8px 12px;
    }

    .modal-gallery { grid-template-columns: 1fr; }

    .modal-gallery img { height: 200px; }

    .about-visual {
        padding: 28px 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-stat strong { font-size: 2rem; }

    .about-tech-list {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-wave--back,
    .hero-wave--front {
        animation: none;
    }
}
