
:root {
    --color-oscuro: #1a1a1a;
    --color-claro: #ffffff;
    --color-bg-seccion: #f9f9f9;
    --color-principal: #0076ff; 
    --color-texto: #333333;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.05);
}
   
[data-theme="dark"] {
    --color-oscuro: #000000;
    --color-claro: #000000;      
    --color-bg-seccion: #000000; 
    --color-texto: #fffefe;      
    --nav-bg: rgba(18, 18, 18, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 0px; 
   overflow-x: clip; 
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-texto);
    line-height: 1.6;
    background-color: var(--color-claro);
    transition: background-color 0.3s ease, color 0.3s ease; 
    overflow-x: clip; 
    width: 100%;
}


[data-theme="dark"] .hero-section {

    background-image: linear-gradient(
                        to bottom, 
                        rgba(0, 0, 0, 0.6) 0%, 
                        rgba(0, 0, 0, 0.45) 60%, 
                        var(--color-claro) 100%
                      ), 
                      url('/images/fondo-herop.png');

}





[data-theme="dark"] .logo-picture img {
    content: url("/images/logo_blanco_png.png");
}

[data-theme="dark"] .service-card {
    background-color: rgba(30, 30, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

[data-theme="dark"] .portfolio-card {
    background-color: rgba(30, 30, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .main-footer {
    background-color: rgba(18, 18, 18, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nfc-card-box {
    background-color: rgba(30, 30, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .portfolio-card {
    background-color: rgba(30, 30, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .contact-form-box {
    background-color: rgba(30, 30, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}


h1, h2, h3, h4, .logo-text, .footer-logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em; 
}




h1, .logo-text{
    font-family: 'Forum', serif;
    font-weight: 400; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text {
    font-weight: 800; 
}
[data-theme="dark"] .portfolio-img-box {
    background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
                               HEADER 
   ========================================================================== */

.main-header {
    /*position: sticky;
    top: 0;
    left: 0;*/
    width: 100%;
    z-index: 1000; 
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 15px 20px;
}

.nav-logo a {
    display: flex;
    align-items: center; 
   /* gap: 5px;*/           
    text-decoration: none;
}

.nav-logo img {
    height: 60px;       
    width: auto;
    display: block;
}

.nav-logo .logo-text {
    font-size: 1.3rem;        
    font-weight: 700;          
    color: var(--color-texto); 
    letter-spacing: 0.5px;     
    white-space: nowrap;       
    font-family: 'Segoe UI', sans-serif; 
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px; 
    margin-left: auto; 
    margin-right: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-principal);
    transition: width 0.3s ease;
}


.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-texto);
    border-radius: 2px;
    transition: all 0.3s ease;
}

section {
    padding: 100px 20px;
    min-height: 80vh;
}

.theme-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1010;
    transition: transform 0.2s ease;
}


/* ==========================================================================
                                 SECCIÓN HERO  
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(110vh - 70px); 
    min-height: 500px; 
    background-image: linear-gradient(
                        to bottom, 
                        rgba(0, 0, 0, 0.1) 0%, 
                        rgba(0, 0, 0, 0.1) 60%, 
                        var(--color-claro)100%
                      ), 
                      url('/images/fondo-heropd.png');
    
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.4s ease; 
    
}




.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px ;
    display: flex;
    justify-content: flex-end;
}


.hero-content {
    max-width: 500px;
    color: var(--color-texto);  
    transform: translateY(-30px); 
    animation: fadeInUp 1s ease forwards; 
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
   color: var(--color-texto);  
}


.btn-hero {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-principal);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}



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

/* ==========================================================================
                                 SECCIÓN SERVICES 
   ========================================================================== */

.services-section {
    padding: 80px 20px;
    background-color: var(--color-claro);
    transition: background-color 0.3s ease;
}

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


.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.services-header p {
    font-size: 1.1rem;
    color: var(--color-texto);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.45); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); 
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5); 
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background-color: rgba(0, 118, 255, 0.08);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px; 
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-texto);
    line-height: 1.6;
    opacity: 0.9;
}

/* ==========================================================================
                                 SECCIÓN ABOUT 
   ========================================================================== */

.about-section {
    padding: 100px 20px;
    background-color: var(--color-claro);
    transition: background-color 0.3s ease;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}


.about-text {
    flex: 1;
}

.about-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-principal);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--color-texto);
    margin-bottom: 15px;
    opacity: 0.9;
}

.about-process {
    flex: 1;
}

.about-process h3 {
    font-size: 1.6rem;
    color: var(--color-texto);
    margin-bottom: 30px;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    padding-left: 20px;
    border-left: 2px dashed rgba(0, 118, 255, 0.2); 
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.step-number {
    background-color: var(--color-principal);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin-left: -39px; 
}

.step-info h4 {
    font-size: 1.15rem;
    color: var(--color-oscuro);
    margin-bottom: 5px;
    font-weight: 600;
}

.step-info p {
    font-size: 0.95rem;
    color: var(--color-texto);
    line-height: 1.5;
    opacity: 0.85;
}


/* ==========================================================================
                                 SECCIÓN PORTAFOLIO 
   ========================================================================== */
.portfolio-section {
    padding: 100px 20px;
    background-color: var(--color-claro);
    transition: background-color 0.3s ease;
}

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

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-principal);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.portfolio-header h2 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 15px;
}

.portfolio-header p {
    font-size: 1.1rem;
    color: var(--color-texto);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.portfolio-card {
    text-decoration: none; 
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    overflow: hidden; 
    box-shadow: 0 10px 30px var(--shadow-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

.portfolio-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden; 
    background-color: #eee;
    background-color: rgba(0, 0, 0, 0.03); 
    
    display: flex;
    align-items: center;   
    justify-content: center; 
    padding: 5px; 
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: transform 0.5s ease;
}

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

.project-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-principal);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    color: var(--color-texto);
    margin-bottom: 12px;
    font-weight: 600;
}

.portfolio-info p {
    font-size: 0.95rem;
    color: var(--color-texto);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}


.project-link-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-principal);
    margin-top: auto; 
    transition: padding-left 0.3s ease;
}


.slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}


.portfolio-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px 30px 5px;
    width: 100%;
    scrollbar-width: none; 
}
.portfolio-slider::-webkit-scrollbar {
    display: none;
}

.portfolio-card {
    flex: 0 0 calc(33.333% - 20px); 
    min-width: 300px;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}


.portfolio-info-only {
    justify-content: center;
    min-height: 380px; 
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    color: var(--color-oscuro);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 15px var(--shadow-texto);
    transition: transform 0.2s, background-color 0.2s;
}


.prev-btn { left: -22px; }
.next-btn { right: -22px; }


/* ==========================================================================
                              SECCIÓN STICKERS NFC 
   ========================================================================== */
.nfc-section {
    padding: 100px 20px;
    background-color: var(--color-claro);
    transition: background-color 0.3s ease;
}

.nfc-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.nfc-text {
    flex: 1.2; 
}

.nfc-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-principal);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.nfc-text h2 {
    font-size: 2.5rem;
   
    line-height: 1.2;
    margin-bottom: 20px;
}

.nfc-text p {
    font-size: 1.05rem;
    color: var(--color-texto);
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.nfc-card-box {
    flex: 0.8;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 14px 40px var(--shadow-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


.nfc-card-content h3 {
    font-size: 1.4rem;
    color: var(--color-oscuro¿);
    margin-bottom: 25px;
    font-weight: 600;
}


.nfc-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.nfc-steps-list li {
    font-size: 0.95rem;
    color: var(--color-texto);
    line-height: 1.5;
    position: relative;
    padding-left: 25px;
}

.nfc-steps-list li::before {
    content: "✓";
    color: #25d366; 
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.nfc-icon-pulse {
    font-size: 2rem;
    background-color: rgba(0, 118, 255, 0.1);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    animation: pulseIcon 2s infinite;
}

.nfc-badge {
    display: inline-block;
    background-color: var(--color-principal);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
}

@keyframes pulseIcon {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 118, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 118, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 118, 255, 0);
    }
}

/* ==========================================================================
                                SECCIÓN CONTACTO 
   ========================================================================== */
.contact-section {
    padding: 100px 20px;
    background-color: var(--color-claro);
    transition: background-color 0.3s ease;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-principal);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--color-texto);
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.9;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #25d366; 
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
    transition: transform 0.2s ease;
}


.contact-form-box {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 14px 40px var(--shadow-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-texto);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--color-claro);
    color: var(--color-texto);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-principal);
    box-shadow: 0 0 0 3px rgba(0, 118, 255, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--color-principal);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    margin-top: 10px;
}



/* ==========================================================================
                                     FOOTER
   ========================================================================== */
.main-footer {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding: 70px 20px 0 20px;
    box-shadow: 0 -10px 30px var(--shadow-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 50px;
    padding-bottom: 50px;
}


.footer-column h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-brand .footer-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-texto);
    display: block;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--color-texto);
    line-height: 1.6;
    max-width: 320px;
    opacity: 0.85;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li, 
.footer-column ul li a {
    font-size: 0.95rem;
    color: var(--color-texto);
    text-decoration: none;
    transition: color 0.2s ease;
}



.footer-contact p {
    font-size: 0.95rem;
    color: var(--color-texto);
    margin-bottom: 15px;
    opacity: 0.85;
}

.contact-list li a {
    font-weight: 600;
    color: var(--color-principal) 
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 25px 0;
}


.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-texto);
    opacity: 0.7;
}

.footer-legal a {
    color: var(--color-texto);
    text-decoration: none;
}


/* ==========================================================================
                                     BTN-WHATSAPP
   ========================================================================== */

.whatsapp-floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; 
}

.whatsapp-chat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background-color: rgba(37, 211, 102); 
    backdrop-filter: blur(8px);
    border: 1px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-radius: 50%;
}


.whatsapp-chat-btn img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.whatsapp-chat-btn .wa-tooltip {
    color: var(--color-texto);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}




/* ==========================================================================
   NOTIFICACIÓN FLOTANTE (Toast de Éxito - Abajo Izquierda)
   ========================================================================== */

.toast-message {
    position: fixed;
    bottom: 30px;
    left: -400px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 360px;
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.toast-message.success {
    background-color: rgba(37, 211, 102, 0.15); 
    border: 1px solid rgba(37, 211, 102, 0.4);
}
.toast-message.success .toast-icon {
    background-color: #25d366;
}

.toast-message.error {
    background-color: rgba(255, 75, 75, 0.15); 
    border: 1px solid rgba(255, 75, 75, 0.4);
}
.toast-message.error .toast-icon {
    background-color: #ff4b4b; 
}


.toast-message p { color: var(--color-oscuro); font-size: 0.95rem; font-weight: 600; margin: 0; }
.toast-icon { color: #ffffff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: bold; flex-shrink: 0; }
.toast-message.mostrar { left: 30px; }



/* ==========================================================================
                                RESPONSIVE
   ========================================================================== */



@media screen and (max-width: 768px) {
    .toast-message { max-width: calc(100% - 40px); bottom: 20px; left: -100%; }
    .toast-message.mostrar { left: 20px; }





    .nav-toggle {
        display: flex; 
    }

   .navbar {
        padding: 15px 20px; 
    }
    

    .nav-logo a {
        flex-direction: column; 
  
    }

    .main-header {
        overflow: visible ; 
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 70%;   
        height: 100vh;
        z-index: 999; 
        background-color: var(--color-claro);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        box-shadow: -10px 0 30px var(--shadow-color);
        transition: right 0.4s ease; 
        visibility: hidden; 
        margin: 0;         
        padding: 0; 
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.2rem; 
    }

   
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0; 
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

  .hero-container {
        justify-content: center; 
    }

    .hero-content {
        text-align: center;
        transform: translateY(0);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

     .about-container {
        flex-direction: column; 
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }

      .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    .contact-form-box {
        width: 100%;
        padding: 30px 20px;
    }
    .contact-info h2 {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr; 
        gap: 35px;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

}

@media screen and (max-width: 992px) {
    .portfolio-card {
        flex: 0 0 calc(50% - 15px); 
    }

   .nfc-container {
        flex-direction: column;
        gap: 40px;
    }
    .nfc-card-box {
        width: 100%;
        padding: 30px;
    }
    .nfc-text h2 {
        font-size: 2rem;
    }

}

@media screen and (max-width: 680px) {
    .portfolio-card {
        flex: 0 0 100%; 
    }
    
    .slider-btn { display: none; } 
}


@media screen and (max-width: 480px) {
    .whatsapp-chat-btn {
        border-radius: 50%;
    }
    .whatsapp-chat-btn .wa-tooltip {
        display: none;
    }
}



/* ==========================================================================
                                    EFECT HOVER
   ========================================================================== */
.theme-btn:hover {
    transform: scale(1.1);
}
.nav-links a:hover {
    color: var(--color-principal);
}

.nav-links a:hover::after {
    width: 100%; 
}

.btn-hero:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.service-card:hover {
   transform: translateY(-10px) scale(1.02); 
   border-color: rgba(0, 118, 255, 0.4); 
   box-shadow: 0 14px 40px 0 rgba(0, 118, 255, 0.12);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02); 
    border-color: rgba(0, 118, 255, 0.4); 
    box-shadow: 0 14px 40px 0 rgba(0, 118, 255, 0.12);
}


.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 118, 255, 0.3);
    box-shadow: 0 20px 40px var(--shadow-color);
}

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

.portfolio-card:hover .project-link-text {
    padding-left: 6px;
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background-color: var(--color-principal);
    color: #ffffff;
}

.whatsapp-link:hover {
    transform: scale(1.02);
}

.btn-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.footer-legal a:hover {
    text-decoration: underline;
}
.footer-column ul li a:hover {
    color: var(--color-principal);
}
.whatsapp-chat-btn:hover {
    transform: translateY(-4px) scale(1.03);
    background-color: #25d366; 
    border-color: #25d366;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.3);
}


.whatsapp-chat-btn:hover .wa-tooltip {
    color: #ffffff;
}
