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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #4a1c59 0%, #6b2c7f 50%, #4a1c59 100%);
    min-height: 100vh;
}

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(74, 28, 89, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cookie-btn.accept {
    background: linear-gradient(45deg, #e6b800, #ffcc00);
    color: #4a1c59;
}

.cookie-btn.reject {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(74, 28, 89, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand h1 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffcc00;
}

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

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(45deg, #e6b800, #ffcc00);
    color: #4a1c59;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 184, 0, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Sectores Section */
.sectores {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.sectores h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sectores > .container > p {
    text-align: center;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sectores h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 30px;
    color: #ffcc00;
}

.sectores-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.sectores-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sector-shape {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.sectores-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sector-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.sector-item p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.transversal {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transversal h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffcc00;
}

.transversal p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Blog Section */
.blog {
    padding: 80px 0;
}

.blog h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #fff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.blog-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

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

.blog-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.blog-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.blog-item p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-cta {
    background: linear-gradient(45deg, #e6b800, #ffcc00);
    color: #4a1c59;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.3);
}

/* Nosotros Section */
.nosotros {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.nosotros h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #fff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nosotros-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.nosotros-text ul {
    list-style: none;
    margin-bottom: 30px;
}

.nosotros-text li {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.nosotros-text li:before {
    content: "•";
    color: #ffcc00;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.nosotros-text p {
    font-size: 16px;
    font-weight: 600;
    color: #ffcc00;
}

.nosotros-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.servicio-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.servicio-item:hover {
    transform: translateY(-5px);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.servicio-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.servicio-item p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Contact Section */
.contacto {
    padding: 80px 0;
}

.contacto h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #fff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ffcc00;
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #e6b800, #ffcc00);
    color: #4a1c59;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 184, 0, 0.3);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffcc00;
}

.footer-content p {
    font-size: 14px;
    opacity: 0.6;
}

/* Additional Animations */
.form-group {
    transition: transform 0.3s ease;
}

.blog-item,
.servicio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.blog-item:hover,
.servicio-item:hover {
    box-shadow: 0 15px 40px rgba(255, 204, 0, 0.1);
}

.sector-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Enhanced focus states for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .cookie-popup,
    .header,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .sectores,
    .blog,
    .nosotros {
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .blog-item,
    .servicio-item,
    .transversal {
        border: 2px solid #fff;
    }
    
    .form-group input {
        border: 2px solid #fff;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2a0d33 0%, #4a1c59 50%, #2a0d33 100%);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 42px;
    }
    
    .nosotros-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .sectores-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sector-shape {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(74, 28, 89, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text p {
        font-size: 14px;
    }
    
    .sectores h2,
    .blog h2,
    .nosotros h2,
    .contacto h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .blog-grid,
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .sector-item {
        text-align: left;
        gap: 15px;
    }
    
    .sectores-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sector-shape {
        width: 200px;
        height: 200px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .sectores,
    .blog,
    .nosotros,
    .contacto {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .nav-brand h1 {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .blog-item,
    .servicio-item {
        padding: 20px;
    }
    
    .transversal {
        padding: 20px;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .contact-form {
        padding: 0 10px;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .sectores,
    .blog,
    .nosotros,
    .contacto {
        padding: 50px 0;
    }
}