:root {
    --primary: #FF6600;
    --primary-dark: #cc5200;
    --navy: #003366;
    --navy-dark: #002244;
    --accent: #FFD700;
    --light: #ffffff;
    --dark: #1e293b;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--navy-dark);
    color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* NAVBAR STYLE FROM SCREENSHOTS */
.navbar-ref {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.navbar-ref.hide {
    transform: translateY(-100%);
}

.navbar-ref.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-ref-top {
    background-color: var(--primary);
    padding: 0.8rem 0;
}

.nav-ref-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.nav-ref-links a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.nav-ref-links a:hover {
    opacity: 0.8;
}

.nav-ref-bottom {
    background-color: var(--navy);
    padding: 1.2rem 0;
    border-bottom: 3px solid var(--primary-dark);
}

.nav-ref-branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-ref-logo {
    height: 70px;
}

.nav-ref-titles {
    display: flex;
    flex-direction: column;
}

.nav-ref-main-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.nav-ref-sub-title {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* HERO SECTION FROM SCREENSHOTS */
.hero-ref {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 160px;
    padding-bottom: 4rem;
    background-image: url('imagenes/LOGO-LOS-DE-OTAY-VISTA-OK-3.png');
    background-size: cover;
    background-position: center top;
    background-color: #000;
}

.hero-ref-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

#heroRefVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-ref-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 40%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-ref-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.ref-hero-title {
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-family: var(--font-heading);
    line-height: 0.95;
    color: white;
    font-weight: 900;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.5rem;
}

.ref-hero-brand {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    color: var(--accent);
    font-weight: 900;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
    line-height: 1;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.hero-info-item:last-child {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4dc3ff;
}

.hero-info-icon {
    color: #4dc3ff;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* MENU SECTION FROM SCREENSHOTS */
.menu-ref-section {
    background-color: var(--navy);
    padding: 6rem 0;
}

.menu-ref-header {
    text-align: center;
    margin-bottom: 5rem;
}

.menu-ref-header h2 {
    font-size: 4rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.orange-text {
    color: var(--primary);
}

.ref-header-line {
    width: 100px;
    height: 4px;
    background: var(--primary);
    margin: 1.5rem auto;
}

.ref-header-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.menu-ref-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-ref-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border-bottom: 3px solid var(--primary);
    transition: transform 0.3s;
}

.menu-ref-card:hover {
    transform: translateY(-8px);
}

.ref-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ref-price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #003366cc;
    color: #4dc3ff;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: 800;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.ref-card-body {
    padding: 1.2rem;
}

.ref-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: white;
}

.ref-card-body p {
    color: rgba(255, 255, 255, 0.6);
}

/* Featured / star card */
.menu-card-featured {
    border-bottom: 3px solid #ffd700;
    position: relative;
}

.menu-tag-star {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ffd700;
    color: #111;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .menu-ref-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .menu-ref-grid {
        grid-template-columns: 1fr;
    }
}

/* PROCESO SECTION */
.proceso-section {
    background-color: var(--navy-dark);
    padding: 6rem 0;
}

.proceso-video-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 102, 0, 0.2);
}

.proceso-video-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

#procesoVideo {
    width: 100%;
    height: 100%;
    display: block;
}

.proceso-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 102, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s;
    z-index: 10;
}

.proceso-video-overlay:hover {
    background: rgba(0, 51, 102, 0.6);
}

.play-icon-large {
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 102, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
    }
}

.proceso-video-overlay h3 {
    font-size: 1.2rem;
    letter-spacing: 3px;
    font-weight: 800;
    color: white;
}

/* PROCESO SECTION UPDATED */
.proceso-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.proceso-video-area {
    flex: 1.2;
}

.proceso-text-area {
    flex: 0.8;
}

.proceso-card-info {
    background: rgba(0, 51, 102, 0.5);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 102, 0, 0.2);
}

.proceso-card-info h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.proceso-card-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.proceso-list {
    list-style: none;
}

.proceso-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.list-dot {
    color: #4dc3ff;
    width: 20px;
}

/* HISTORIA / CALIDAD SECTION */
.historia-section {
    background: var(--navy);
    padding: 8rem 0;
}

.historia-grid-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: flex-start;
}

.section-title-alt {
    font-size: 4rem;
    line-height: 0.9;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
}

.ref-header-line-left {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-bottom: 2rem;
}

.historia-left p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s;
}

.info-box:hover {
    background: rgba(255, 255, 255, 0.06);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(77, 195, 255, 0.1);
    color: #4dc3ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.info-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.info-badge {
    display: inline-block;
    background: rgba(255, 102, 0, 0.15);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 1rem;
}

/* CONTACT MODERN SECTION */
.contact-cta {
    background: var(--navy-dark);
    padding: 8rem 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: white;
    text-transform: uppercase;
}

.contact-header h2 .orange-text {
    color: var(--primary);
}

.contact-header .underline {
    width: 80px;
    height: 4px;
    background: #4dc3ff;
    margin: 1rem auto;
}

.contact-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card-v2 {
    background: rgba(0, 51, 102, 0.4);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-card-v2 .icon-wrap {
    margin-bottom: 1.5rem;
    color: #4dc3ff;
}

.contact-card-v2 h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.contact-card-v2 p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

/* FORM STYLES */
.modern-form {
    width: 100%;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-form {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-form:hover {
    background: var(--primary-dark);
}

.whatsapp-link-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.3s;
}

.whatsapp-link-btn:hover {
    transform: translateY(-5px);
}

/* MAP STYLES */
.map-frame-wrap {
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.map-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* CLIENTES SECTION */
.clientes-section {
    background: var(--navy);
    padding: 7rem 0 4rem;
    overflow: hidden;
}

.clientes-header {
    text-align: center;
    margin-bottom: 4rem;
}

.clientes-eyebrow {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.clientes-header h2 {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.clientes-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Infinite carousel */
.logo-carousel-wrap {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    margin: 0 0 3rem;
}

.logo-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.logo-slide {
    flex-shrink: 0;
}

.client-logo-box {
    width: 160px;
    height: 160px;
    background: white;
    /* Background white for logo contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.client-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0);
    /* Keep original colors for logos */
    transition: transform 0.3s;
}

.client-logo-box:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.3);
    border-color: var(--primary);
}

.client-logo-box:hover img {
    transform: scale(1.05);
}





.clientes-cta {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
    padding: 2rem 0;
}

/* OTHERS */
.features {
    background-color: var(--navy-dark);
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    text-align: center;
    width: 100%;
}

.feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-item i {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.2rem;
}

.feature-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-top: auto;
    border: 2px solid rgba(255, 102, 0, 0.3);
}

.contact-section {
    position: relative;
    background-color: var(--navy-dark);
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 2.5rem;
    color: white;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.info-item i {
    color: #4dc3ff;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 3px;
}

.info-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* FOOTER UPDATED */
.footer-ref {
    background: #001122;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 50px;
}

.footer-titles {
    display: flex;
    flex-direction: column;
}

.footer-main-title {
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
}

.footer-sub-title {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-grid h4 {
    color: var(--primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.footer-contact i {
    color: #4dc3ff;
    flex-shrink: 0;
}

.hours-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.h-title {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    color: #4dc3ff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.h-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.h-row.gray {
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.footer-credits {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
}

.footer-credits strong {
    color: rgba(255, 255, 255, 0.45);
}

.credits-tag {
    background: rgba(255, 102, 0, 0.15);
    color: var(--primary);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 992px) {

    .proceso-flex,
    .historia-grid-main,
    .footer-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.footer {
    background-color: #001122;
}

/* CONTACT CTA SECTION */
.contact-cta {
    background: var(--navy);
    padding: 8rem 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.contact-header .underline {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto;
    border-radius: 2px;
}

.contact-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.contact-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-card-v2 {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.contact-card-v2 h3 {
    font-size: 1.6rem;
    font-weight: 800;
}

.contact-card-v2>p {
    color: rgba(255, 255, 255, 0.6);
}

.icon-wrap {
    color: #25d366;
    margin-bottom: 0.5rem;
}

.whatsapp-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 0.5rem;
}

.whatsapp-link-btn:hover {
    background: #1da851;
    transform: translateY(-3px);
}

/* Divider inside card */
.contact-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

/* Call block */
.call-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.call-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.call-label i {
    width: 18px;
    height: 18px;
    color: #4dc3ff;
}

.call-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.call-number:hover {
    color: #4dc3ff;
}

/* Social buttons inside card */
.card-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 900;
    font-size: 0.85rem;
    transition: transform 0.3s, opacity 0.3s;
    border: none;
}

.social-btn:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.social-btn.fb {
    background: #1877f2;
}

.social-btn.ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.tk {
    background: #010101;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Form styles */
.modern-form {
    width: 100%;
    text-align: left;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.btn-form {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-form:hover {
    background: var(--primary-dark);
}

/* =============================================
   GLOBAL – prevenir desbordamiento horizontal
   ============================================= */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    word-break: break-word;
}

/* =============================================
   RESPONSIVE – TABLET (max 900px)
   ============================================= */
@media (max-width: 900px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-ref-links {
        gap: 1.5rem;
    }

    .nav-ref-main-title {
        font-size: 1.6rem;
    }

    .nav-ref-logo {
        height: 50px;
    }

    .hero-ref {
        padding-top: 130px;
    }

    .menu-ref-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid-modern {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* =============================================
   RESPONSIVE – MOBILE (max 600px)
   ============================================= */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Ocultar barra de links superior – deja solo logo+nombre */
    .nav-ref-top {
        display: none;
    }

    .nav-ref-bottom {
        padding: 0.8rem 0;
    }

    .nav-ref-branding {
        gap: 0.8rem;
    }

    .nav-ref-logo {
        height: 42px;
    }

    .nav-ref-main-title {
        font-size: 1.1rem;
    }

    .nav-ref-sub-title {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* Hero */
    .hero-ref {
        padding-top: 80px;
        padding-bottom: 3rem;
        background-position: center center;
        min-height: 85vh;
    }

    .hero-ref-content {
        text-align: left;
        max-width: 90%;
    }

    .ref-hero-title {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
        line-height: 1.1;
    }

    .ref-hero-brand {
        font-size: clamp(1.5rem, 8vw, 2.4rem);
    }

    .hero-info-item {
        font-size: 0.9rem;
    }

    .hero-info-item:last-child {
        font-size: 1.1rem;
    }

    /* Títulos de sección – todo controlado con clamp */
    .menu-ref-header h2,
    .contact-header h2,
    section h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .ref-header-desc {
        font-size: 0.95rem;
    }

    /* Secciones – padding ajustado */
    .menu-ref-section,
    .features,
    .proceso-section,
    .clients-section,
    .contact-section,
    .contact-cta {
        padding: 3rem 0;
    }

    .menu-ref-header {
        margin-bottom: 2rem;
    }

    /* Productos en 1 columna */
    .menu-ref-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .ref-card-img {
        height: 200px;
    }

    /* Features en 2 columnas pequeñas */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .feature-item {
        padding: 1rem 0.7rem;
    }

    .feature-item h3 {
        font-size: 0.85rem;
    }

    .feature-item p {
        font-size: 0.75rem;
    }

    /* Historia / texto */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-text p,
    .story-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Mapa */
    .map-frame-wrap iframe {
        height: 240px;
    }

    /* Contacto CTA */
    .contact-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card-v2 {
        padding: 1.5rem;
    }

    .call-number {
        font-size: 1.3rem;
    }

    .whatsapp-link-btn {
        font-size: 0.9rem;
        padding: 0.85rem 1.2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 0.78rem;
        text-align: center;
    }
}

/* =============================================
   RESPONSIVE – PHONES PEQUEÑOS (max 400px)
   ============================================= */
@media (max-width: 400px) {
    .ref-hero-title {
        font-size: 1.6rem;
    }

    .ref-hero-brand {
        font-size: 1.4rem;
    }

    .nav-ref-main-title {
        font-size: 0.95rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 1.7rem !important;
    }
}