:root {
    --primary-dark: #1b5e20;
    --primary-light: #2e7d32;
    --accent: #fbf706;
    --hover-accent: #f4a261;
    --text-dark: #333;
    --text-light: #f1f1f1;
    --shadow: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f9;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Hero Section */
.tech-hero {
    position: relative;
    height: 100vh;
    background: url(../img/rochaa.png) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .tech-hero {
        background: url(../img/fisica1.jpg) center/cover no-repeat;
        height: 100vh;
    }
}

.tech-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    animation: techPulse 8s ease-in-out infinite alternate;
}

@keyframes techPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.7rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px var(--shadow);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
}

    /* Bandera de Información */
.bandera-informacion {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-top: 4px solid #fbf706;
    border-bottom: 4px solid #fbf706;
}

.cuadricula-informacion {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.caja-informacion {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 2px solid rgba(251, 247, 6, 0.2);
}

.caja-informacion:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: #fbf706;
    box-shadow: 0 10px 30px rgba(251, 247, 6, 0.3);
}

.caja-informacion .icono {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.caja-informacion h3 {
    color: #fbf706;
    font-size: 25px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.caja-informacion p {
    color: #e8f5e9;
    font-size: 0.9rem;
}

/* Lab Section */
.lab-section {
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.9rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-heading p {
    font-size: 1.15rem;
    color: #666;
    margin-top: 2rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .section-heading h2 {
        font-size: 2.2rem;
    }
    .section-heading h2::before {
        display: none;
    }
    .section-heading p {
        font-size: 1rem;
    }
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.lab-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow);
    transition: all 0.4s ease;
    border: 3px solid #e8e8e8;
    position: relative;
}

.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.lab-card:hover::before {
    transform: scaleX(1);
}

.lab-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 50px rgba(46, 125, 50, 0.3);
}

.lab-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.lab-header .lab-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.lab-header h3 {
    color: var(--accent);
    font-size: 1.7rem;
    font-weight: 700;
}

.lab-body {
    padding: 2rem;
}

.lab-body p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.lab-body ul {
    list-style: none;
    padding: 0;
}

.lab-body ul li {
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: #444;
    border-bottom: 1px dashed #e0e0e0;
}

.lab-body ul li:last-child {
    border-bottom: none;
}

.lab-body ul li::before {
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .lab-grid {
        grid-template-columns: 1fr;
    }
    .lab-header h3 {
        font-size: 1.5rem;
    }
    .lab-body p {
        font-size: 0.95rem;
    }
}

.projects-area {
background: linear-gradient(135deg, #1b5e20, #2e7d32);
padding: 5rem 2rem;
}

.section-heading {
text-align: center;
margin-bottom: 3rem;
}

.section-heading h2 {
color: #fbf706;
font-size: 2.4rem;
margin-bottom: 1rem;
position: relative;
}

.section-heading h2::after {
content: "";
display: block;
width: 80px;
height: 3px;
background: linear-gradient(90deg, transparent, #ffffff, transparent);
margin: 0.8rem auto 0;
}

.section-heading p {
color: #e8f5e9;
font-size: 1.1rem;
line-height: 1.6;
max-width: 800px;
margin: 0 auto;
}

.projects-list {
display: grid;
gap: 1.8rem;
max-width: 1100px;
margin: 0 auto;
}

.project-item {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(15px);
border-radius: 15px;
padding: 2rem;
border-left: 5px solid #fbf706;
transition: all 0.3s ease;
}

.project-item:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateX(10px);
box-shadow: 0 10px 30px rgba(251, 247, 6, 0.3);
}

.project-text h4 {
color: #fbf706;
font-size: 1.6rem;
margin-bottom: 1rem;
}

.project-text p {
color: #e8f5e9;
font-size: 1rem;
line-height: 1.7;
}

/* Skills Section */
.skills-area {
    max-width: 1300px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.skills-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.skill-item {
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.4s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.1), transparent 60%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.skill-item:hover::before {
    transform: scale(1);
}

.skill-item:hover {
    transform: translateY(-12px) scale(1.05);
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.25);
}

.skill-item .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-item:hover .icon {
    transform: scale(1.3) rotate(-10deg);
}

.skill-item h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.skill-item p {
    color: #666;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .skills-wrap {
        grid-template-columns: 1fr;
    }
    .skill-item h3 {
        font-size: 1.3rem;
    }
    .skill-item p {
        font-size: 0.95rem;
    }
}

/* CTA Section */
.cta-tech {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(25, 88, 28, 0.1), rgba(6, 251, 26, 0.263));
    position: relative;
}

.cta-tech h2 {
    font-size: 2.9rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.cta-tech p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.cta-btn-tech {
    display: inline-block;
    padding: 1.4rem 4rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 900;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.4);
    border: 3px solid var(--accent);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-btn-tech::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(251, 247, 6, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-btn-tech:hover::before {
    width: 400px;
    height: 400px;
}

.cta-btn-tech:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(251, 247, 6, 0.6);
}

.cta-btn-tech span {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cta-tech h2 {
        font-size: 2.2rem;
    }
    .cta-tech p {
        font-size: 1.1rem;
    }
    .cta-btn-tech {
        padding: 1rem 3rem;
        font-size: 1.1rem;
    }
}

/* Navbar */
.nav-bar {
    text-shadow: var(--text-dark) 2px 2px 2px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.18) 50%, rgba(237, 221, 83, 0) 100%);
    color: var(--text-light);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, transform 0.4s ease;
    will-change: transform;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-bar.hide-on-scroll {
    transform: translateY(-100%);
}

.nav-bar ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex: 1;
    list-style: none;
}

.nav-bar ul li a {
    color: var(--text-light);
    font-weight: bold;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-bar ul li a:hover {
    color: var(--hover-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 4px 0;
    transition: 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

@media (max-width: 1366px) and (max-height: 1024px) {
.nav-bar {
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    gap: 0 !important;
}
.hamburger {
    display: flex;
    order: 1;
}
.nav-bar ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-image:url(../img/liceof.png) ;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    gap: 1rem !important;
    transition: left 0.3s ease;
    z-index: 1001;
    order: 1;
    flex: none !important;
    margin: 0;
    padding: 0;
}
.nav-bar ul.active {
    left: 0;
}
.nav-bar ul li {
    width: 100%;
    text-align: center;
}
.nav-bar ul li a {
    font-size: 1.5rem;
    padding: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    color: white !important;
}
.nav-bar ul li a:hover {
    color: var(--hover-accent) !important;
    border-bottom-color: var(--hover-accent);
    background: rgba(244, 162, 97, 0.1);
}
.nav-bar div:last-child {
    display: none !important;
}
}

@media (max-width: 991px) {
.nav-bar {
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    gap: 0 !important;
}
.hamburger {
    display: flex;
    order: 1;
}
.nav-bar a[href="index.html"] {
    order: 2;
    margin-right: 0 !important;
}
.nav-bar a[href="index.html"] img {
    width: 60px !important;
    height: 65px !important;
}
.nav-bar ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-image: url(../img/fondo1.png);
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    gap: 2rem !important;
    transition: left 0.3s ease;
    z-index: 1001;
    order: 1;
    flex: none !important;
    margin: 0;
    padding: 0;
}
.nav-bar ul.active {
    left: 0;
}
.nav-bar ul li {
    width: 100%;
    text-align: center;
}
.nav-bar ul li a {
    font-size: 1.5rem;
    padding: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    color: white !important;
}
.nav-bar ul li a:hover {
    color: var(--hover-accent) !important;
    border-bottom-color: var(--hover-accent);
    background: rgba(244, 162, 97, 0.1);
}
.nav-bar div:last-child {
    display: none !important;
}
}

@media (max-width: 480px) {
    .nav-bar {
        padding: 0.8rem 1rem !important;
    }
    .nav-bar a[href="index.html"] img {
        width: 50px !important;
        height: 55px !important;
    }
    .hamburger span {
        width: 22px;
        height: 2px;
    }
    .nav-bar ul li a {
        font-size: 1.2rem;
    }
}

@media (max-width: 319px) {
    .nav-bar {
        padding: 0.6rem 0.8rem !important;
    }
    .nav-bar a[href="index.html"] img {
        width: 45px !important;
        height: 50px !important;
    }
    .hamburger span {
        width: 20px;
    }
    .nav-bar ul li a {
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    padding: 40px 20px;
    box-shadow: 0 -4px 10px var(--shadow);
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #c8e6c9;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.contact-item {
    min-width: 200px;
}

.contact-item p {
    margin: 5px 0;
    font-size: 16px;
}

.contact-item strong {
    font-weight: 600;
    color: #a5d6a7;
}

.motto h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer .copyright {
    font-size: 14px;
    color: #cfd8dc;
    margin-top: 10px;
}

.location-access {
    margin-top: 10px;
}

.location-button {
    display: inline-block;
    background-color: #66bb6a;
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px var(--shadow);
}

.location-button:hover {
    background-color: #81c784;
    transform: scale(1.05);
}