/* Nautec - Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #42a98b;
    --secondary-color: #fff;
    --tercery-color: #000;
    --text-gray: #575757;
    --light-gray: #d6d6d6;
    --primary-title-size: 2.5rem;
    --secondary-title-size: 1.8rem;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--tercery-color);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--tercery-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

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

/* ===== Header / Navbar ===== */
.header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
    font-size: 1rem;
    padding: 10px 0;
    cursor: pointer;
}

.nav-item:hover {
    opacity: 0.7;
}

.nav-item.active {
    border-bottom: 2px solid var(--primary-color);
}

.nav-item .arrow {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-color);
    box-shadow: 1px 4px 10px rgba(0,0,0,0.7);
    min-width: 180px;
    display: none;
    z-index: 101;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.dropdown a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.dropdown a.active {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Soporte Button */
.btn-soporte {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-soporte:hover {
    opacity: 0.8;
    color: var(--secondary-color) !important;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--tercery-color);
}

/* ===== Home Page ===== */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Titles */
.section-title {
    color: var(--primary-color);
    font-size: var(--primary-title-size);
    text-align: center;
    padding: 40px 0 30px;
}

/* Services Cards */
.services-section {
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

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

.service-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.8;
    color: var(--secondary-color);
}

/* Consulting Section */
.consulting-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.consulting-title {
    color: var(--primary-color);
    font-size: var(--primary-title-size);
    text-align: center;
    margin-bottom: 40px;
}

.consulting-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.consulting-logos img {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.consulting-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Why Us Section */
.why-us-section {
    padding: 60px 0;
}

.why-us-title {
    color: var(--primary-color);
    font-size: var(--primary-title-size);
    text-align: center;
    margin-bottom: 30px;
}

.why-us-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.why-us-content p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Trust Section */
.trust-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.trust-title {
    text-align: center;
    color: var(--primary-color);
    font-size: var(--primary-title-size);
    margin-bottom: 40px;
}

/* Carousel */
.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    animation: scroll 30s linear infinite;
}

.carousel img {
    max-width: 150px;
    height: auto;
    margin: 0 30px;
}

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

/* ===== Service Pages ===== */
.service-page {
    padding: 40px 0;
}

.service-header {
    text-align: center;
    padding: 40px 0;
}

.service-header h1 {
    color: var(--primary-color);
    font-size: var(--primary-title-size);
    margin-bottom: 20px;
}

.service-header p {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.service-subtitle {
    color: var(--primary-color);
    font-size: var(--secondary-title-size);
    text-align: center;
    padding: 30px 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--light-gray);
}

.service-item:nth-child(even) {
    direction: rtl;
}

.service-item:nth-child(even) > * {
    direction: ltr;
}

.service-item-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-item-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

.service-item-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Service CTA */
.service-cta {
    text-align: center;
    padding: 60px 0;
    background-color: #f9f9f9;
}

.service-cta h3 {
    color: var(--text-gray);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.service-cta .contact-info {
    margin: 20px 0;
}

.service-cta .email {
    color: var(--primary-color);
    font-size: 1.3rem;
    text-decoration: underline;
}

.service-cta .phone {
    color: var(--text-gray);
    font-size: 1.1rem;
    display: block;
    margin-top: 10px;
}

.service-cta .slogan {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
}

/* ===== Capacitación Page ===== */
.capacitacion-header {
    text-align: center;
    padding: 40px 0;
}

.capacitacion-header h1 {
    color: var(--primary-color);
    font-size: var(--primary-title-size);
    margin-bottom: 20px;
}

.capacitacion-header p {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.curso-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    transition: transform 0.3s ease;
}

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

.curso-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.curso-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== About Page ===== */
.about-section {
    padding: 60px 0;
}

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

.about-text h1 {
    color: var(--primary-color);
    font-size: var(--primary-title-size);
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

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

/* ===== Blog Page ===== */
.blog-header {
    background: linear-gradient(135deg, var(--primary-color), #2d7a62);
    color: var(--secondary-color);
    text-align: center;
    padding: 60px 0;
}

.blog-header h1 {
    font-size: var(--primary-title-size);
    margin-bottom: 10px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.blog-card {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

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

.blog-card-content {
    padding: 20px;
}

.blog-card h3 {
    color: var(--tercery-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-card .date {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.blog-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Blog Entry */
.blog-entry {
    padding: 40px 0;
}

.blog-entry-header {
    margin-bottom: 30px;
}

.blog-entry-header h1 {
    color: var(--tercery-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.blog-entry-header .meta {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.blog-entry-content {
    max-width: 800px;
}

.blog-entry-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-entry-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.blog-entry-content li {
    color: var(--text-gray);
    margin-bottom: 10px;
    list-style: disc;
}

.blog-entry-content strong {
    color: var(--tercery-color);
}

/* ===== Contact Page ===== */
.contact-section {
    padding: 60px 0;
}

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

.contact-form h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

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

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

.contact-info-box {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
}

.contact-info-box h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info-item .icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary-color);
}

.contact-info-item p {
    color: var(--text-gray);
}

.contact-info-item a {
    color: var(--primary-color);
}

/* Map */
.map-container {
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--tercery-color);
    color: var(--secondary-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.footer-section a {
    color: var(--secondary-color);
    opacity: 0.8;
}

.footer-section a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .consulting-logos {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        grid-template-columns: 1fr;
    }

    .service-item:nth-child(even) {
        direction: ltr;
    }

    .cursos-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .consulting-logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title,
    .service-header h1,
    .why-us-title,
    .trust-title,
    .consulting-title {
        font-size: 1.8rem;
    }
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}
