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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.nav-logo {
    width: 244px;
    height: 101px;
    object-fit: contain;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle i {
    font-size: 24px;
    color: #333;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Nueva Hero Section */
#nueva-hero {
    padding: 40px 0;
    background: white;
}

#nueva-hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#nueva-hero .hero-content {
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9;
    height: 350px;
}

#nueva-hero .hero-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

#nueva-hero .hero-content:hover img {
    transform: scale(1.55);
    filter: brightness(1.1);
}

/* Nueva Hero Section with Background Images */
#nueva-hero {
    padding: 60px 0;
    background: white;
}

#nueva-hero .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

#nueva-hero .hero-content {
    flex: 1;
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

#nueva-hero .hero-content:hover {
    transform: scale(1.02);
}

#academia {
    padding-left: 0;
    padding-right: 0;
}

#academia .container {
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
}

.headerseccion {
  margin-bottom: 0px;
  font-size: 12px;
  position: relative;
  display: inline-block;
  font-family: 'Prompt', serif;
  font-family: var(--font-headers), serif;
  font-weight: 600;
  letter-spacing: var(--font-headers-letterspacing);
  text-transform: uppercase;
  letter-spacing: 6px;
  line-height: 1em;
}

.hs-header {
  font-family: 'Prompt', serif;
  font-family: var(--font-headers), serif;
  font-weight: 600;
  letter-spacing: var(--font-headers-letterspacing);
  -ms-word-wrap: break-word;
  word-wrap: break-word;
  font-size: 60px;
}

.hs-header span {
  display: block;
  color: #64748b;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    padding: 30px 20px;
    color: white;
}

.hero-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Responsive Design for Nueva Hero */
@media (max-width: 992px) {
    #nueva-hero .container {
        flex-direction: column;
        gap: 15px;
    }
    
    #nueva-hero .hero-content {
        width: 100%;
        max-width: 600px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    #nueva-hero .hero-content {
        height: 180px;
    }
}

@media (max-width: 576px) {
    #nueva-hero {
        padding: 20px 0;
    }
    
    #nueva-hero .container {
        gap: 10px;
    }
    
    #nueva-hero .hero-content {
        height: 150px;
        border-radius: 6px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

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

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #64748b;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* Inicio Section Grid de nuestro método */
.nm-inicio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 30px;
    align-items: center;
}

.nm-inicio-grid .hero-content {
    text-align: left;
}

.nm-inicio-grid .hero-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.nm-inicio-grid .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.nm-inicio-grid .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.nm-inicio-grid .hero-buttons {
    justify-content: flex-start;
}

/* Responsive Design for Inicio Section */
@media (max-width: 992px) {
    .nm-inicio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nm-inicio-grid .hero-content img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .nm-inicio-grid .hero-content img {
        height: 150px;
    }
}

/* Inicio Section Grid de academia */
.ac-inicio-grid {
    display: grid;
    /*grid-template-columns: 1fr 1fr 1.2fr;*/
    grid-template-columns: 40% 40% 20%;
    gap: 30px;
    align-items: center;
}

.ac-inicio-grid .hero-content {
    text-align: left;
}

.ac-inicio-grid .hero-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ac-inicio-grid .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.ac-inicio-grid .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.ac-inicio-grid .hero-buttons {
    justify-content: flex-start;
}

/* Responsive Design for Inicio Section */
@media (max-width: 992px) {
    .ac-inicio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ac-inicio-grid .hero-content img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .ac-inicio-grid .hero-content img {
        height: 150px;
    }
}

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

.section-alt {
    background: #f8fafc;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.about-text p {
    margin-bottom: 20px;
    color: #475569;
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    padding: 10px 0;
    color: #475569;
    font-weight: 500;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.project-info p {
    color: #64748b;
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    color: #475569;
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.testimonial-author h4 {
    color: #1e293b;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1e293b;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    color: #2563eb;
    min-width: 30px;
}

.contact-item h4 {
    color: #1e293b;
    margin-bottom: 5px;
}

.contact-item p {
    color: #64748b;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1e293b;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 30px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        display: none;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .contact-form {
        padding: 25px 20px;
    }
}
