/* Colores de la triada */
:root {
    --primary-color: #34b0c0;      /* Azul turquesa */
    --secondary-color: #c03434;     /* Rojo */
    --tertiary-color: #b0c034;      /* Verde-amarillo */
    --dark-color: #333333;
    --light-color: #f5f5f5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --neumorphic-light: rgba(255, 255, 255, 0.8);
    --neumorphic-shadow: rgba(0, 0, 0, 0.05);
    --border-radius: 15px;
}

/* Estilos generales */
body {
    font-family: 'Merriweather', serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
}

.section-title {
    margin-bottom: 2.5rem;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
    border-radius: 2px;
}

/* Estilos para Header */
.header {
    padding: 1rem 0;
    background-color: var(--light-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    background-color: transparent;
}

.navbar-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Estilos para el Hero */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-title, .hero-subtitle, .hero-text {
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Estilos neomórficos */
.neumorph-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: 
        8px 8px 16px var(--neumorphic-shadow),
        -8px -8px 16px var(--neumorphic-light);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neumorph-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        12px 12px 20px var(--neumorphic-shadow),
        -12px -12px 20px var(--neumorphic-light);
}

.neumorph-card-inner {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: 
        inset 4px 4px 8px var(--neumorphic-shadow),
        inset -4px -4px 8px var(--neumorphic-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.neumorph-card-inner:hover {
    transform: scale(1.02);
}

.neumorph-button {
    border: none;
    border-radius: 50px;
    background-color: var(--light-color);
    box-shadow: 
        5px 5px 10px var(--neumorphic-shadow),
        -5px -5px 10px var(--neumorphic-light);
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.neumorph-button:hover {
    box-shadow: 
        inset 3px 3px 6px var(--neumorphic-shadow),
        inset -3px -3px 6px var(--neumorphic-light);
    transform: translateY(2px);
}

.neumorph-button.is-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 
        5px 5px 10px rgba(52, 176, 192, 0.3),
        -5px -5px 10px rgba(255, 255, 255, 0.5);
}

.neumorph-input, .neumorph-select select, .neumorph-textarea {
    background-color: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 
        inset 4px 4px 8px var(--neumorphic-shadow),
        inset -4px -4px 8px var(--neumorphic-light);
    padding: 1rem;
    transition: all 0.3s ease;
}

.neumorph-input:focus, .neumorph-select select:focus, .neumorph-textarea:focus {
    box-shadow: 
        inset 4px 4px 8px var(--neumorphic-shadow),
        inset -4px -4px 8px var(--neumorphic-light),
        0 0 0 3px rgba(52, 176, 192, 0.2);
    outline: none;
}

/* Secciones específicas */
.mission-text, .vision-text, .methodology-text, .resources-intro, 
.team-intro, .values-text, .accolades-text, .media-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.mission-image-container, .vision-image-container, .methodology-image-container,
.contact-image-container, .privacy-image-container, .terms-image-container,
.accolades-image-container, .media-image-container, .contact-map-container,
.history-image-container, .values-image-container, .blog-image-container,
.team-member-image, .success-image-container, .related-service-image {
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: 
        5px 5px 10px var(--neumorphic-shadow),
        -5px -5px 10px var(--neumorphic-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-image-container img, .vision-image-container img, .methodology-image-container img,
.contact-image-container img, .privacy-image-container img, .terms-image-container img,
.accolades-image-container img, .media-image-container img, .contact-map-container img,
.history-image-container img, .values-image-container img, .blog-image-container img,
.team-member-image img, .success-image-container img, .related-service-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
    object-fit: cover;
    margin: 0 auto;
}

.mission-image-container img:hover, .vision-image-container img:hover, .methodology-image-container img:hover,
.contact-image-container img:hover, .privacy-image-container img:hover, .terms-image-container img:hover,
.accolades-image-container img:hover, .media-image-container img:hover, .contact-map-container img:hover,
.history-image-container img:hover, .values-image-container img:hover, .blog-image-container img:hover,
.team-member-image img:hover, .success-image-container img:hover, .related-service-image img:hover {
    transform: scale(1.05);
}

/* Metodología */
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Recursos externos */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Blog */
.blog-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: #777;
    font-style: italic;
    margin-bottom: 1rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.carousel-prev, .carousel-next {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    margin: 0 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin: 0 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}

/* Reconocimientos */
.accolades-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Medios */
.media-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.media-date {
    display: block;
    color: #777;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Contacto */
.contact-info {
    height: 100%;
}

/* Equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Valores */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Políticas de privacidad y términos */
.privacy-section, .terms-section {
    margin-bottom: 2.5rem;
}

.updated-date {
    color: #777;
    font-style: italic;
    text-align: center;
    margin-bottom: 2rem;
}

/* Privacy y Terms padding */
body.privacy-page, body.terms-page {
    padding-top: 100px;
}

/* Success page */
.success-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-container {
    text-align: center;
    /*opacity: 0;*/
}

.success-icon {
    margin: 0 auto 2rem;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f8ff;
    box-shadow: 
        5px 5px 10px var(--neumorphic-shadow),
        -5px -5px 10px var(--neumorphic-light);
}

.success-message {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.success-details {
    text-align: left;
    margin: 2rem 0;
}

.success-buttons {
    margin-top: 2rem;
}

.related-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.related-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.related-service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.related-service-content p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* "Leer más" links */
a.read-more, .blog-content a.button {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

a.read-more::after, .blog-content a.button::after {
    content: '→';
    position: absolute;
    /*opacity: 0;*/
    right: -15px;
    top: 0;
    transition: all 0.3s ease;
}

a.read-more:hover, .blog-content a.button:hover {
    padding-right: 20px;
    color: var(--secondary-color);
}

a.read-more:hover::after, .blog-content a.button:hover::after {
    opacity: 1;
    right: 0;
}

/* Footer */
.footer {
    background-color: var(--light-color);
    padding: 3rem 1.5rem;
    box-shadow: 0 -4px 20px var(--shadow-color);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a, .social-links a {
    color: var(--dark-color);
    transition: color 0.3s ease;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

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

.footer-links a:hover, .social-links a:hover {
    color: var(--primary-color);
}

.footer-links a:hover::after, .social-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    flex-direction: column;
}

.social-links a {
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.social-links a::before {
    margin-right: 8px;
    font-family: Arial, sans-serif;
}

.social-links a[href*="facebook"]::before {
    content: '📘';
}

.social-links a[href*="twitter"]::before {
    content: '📘';
}

.social-links a[href*="instagram"]::before {
    content: '📷';
}

.social-links a[href*="linkedin"]::before {
    content: '🔗';
}

.copyright {
    margin-top: 2rem;
    color: #777;
    text-align: center;
}

/* Animaciones */
.animate-button {
    position: relative;
    overflow: hidden;
}

.animate-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.animate-button:hover::after {
    transform: translateX(0);
}

.scroll-animation {
    /*opacity: 0;*/
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animation.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Animaciones con @keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Estilos para el modal */
.modal-card {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-card-head, .modal-card-foot {
    background-color: var(--light-color);
    border: none;
}

.modal-card-body {
    background-color: var(--light-color);
}

/* Estilos responsivos */
@media screen and (max-width: 768px) {
    .methodology-steps, .resources-grid, .accolades-list, .media-highlights, .values-grid {
        grid-template-columns: 1fr;
    }
    
    .neumorph-card, .neumorph-card-inner {
        padding: 1.5rem;
    }
    
    .section-title::after {
        width: 80px;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important;
    }
    
    .navbar-menu {
        background-color: var(--light-color);
        box-shadow: 0 8px 16px var(--shadow-color);
        padding: 1rem;
    }
    
    .navbar-item {
        color: var(--dark-color);
    }
}

/* Micro-interacciones */
.navbar-item {
    position: relative;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-item:hover::after {
    width: 100%;
    left: 0;
}

.button {
    transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.button:active {
    transform: scale(0.95);
}

input, textarea, select {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

input:focus, textarea:focus, select:focus {
    transform: scale(1.02);
}