body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #f4f4f4, #eaeaea);
    color: #333;
    overflow-x: hidden;
}

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

header {
    background: #222831;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid #00adb5;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.language-toggle {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    background: #00adb5;
    border: none;
    padding: 5px 10px;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.theme-toggle:hover {
    background: #007a83;
}

.lang-button {
    background: #00adb5;
    border: none;
    padding: 5px 10px;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.lang-button.active {
    background: #393e46;
}

#carousel-switch-label {
    color: #ccc;
    font-size: 0.9rem;
}

.section {
    background: #ffffff;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #222831;
    border-bottom: 2px solid #00adb5;
    padding-bottom: 5px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
}

.skill {
    background: #00adb5;
    color: #fff;
    padding: 8px 12px;
    margin: 6px;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.skill:hover {
    background: #007a83;
}

.experience-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    transition: transform 0.3s ease-in-out;
}

.experience-container.carousel {
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
}

.experience-container.carousel .experience-item {
    scroll-snap-align: start;
    min-width: 300px;
    flex: 0 0 auto;
}

.experience-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

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

.toggle-info {
    background: #00adb5;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
}

.additional-info {
    display: none;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

footer {
    background: #222831;
    color: #ccc;
    text-align: center;
    padding: 10px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Contact form */
#contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

#contact input,
#contact textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact button {
    background: #00adb5;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
}

#contact button:hover {
    background: #007a83;
}

/* Dark mode styles */
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode header {
    background: #1f1f1f;
    border-bottom-color: #bb86fc;
}

body.dark-mode .section {
    background: #1e1e1e;
}

body.dark-mode .skill {
    background: #bb86fc;
}

body.dark-mode .lang-button.active {
    background: #bb86fc;
}

body.dark-mode .theme-toggle {
    background: #bb86fc;
}

body.dark-mode footer {
    background: #1f1f1f;
}

body.dark-mode #contact input,
body.dark-mode #contact textarea {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #555;
}

@media (min-width: 768px) {
    .experience-container:not(.carousel) .experience-item {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (min-width: 1024px) {
    .experience-container:not(.carousel) .experience-item {
        flex: 1 1 calc(33.33% - 40px);
    }

    /* Nuevo layout para experiencia */
.experience-container.full-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-item {
  display: flex;
  flex-direction: row;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.experience-left {
  flex: 1;
  padding-right: 20px;
  border-right: 2px solid #e8491d;
}

.experience-right {
  flex: 2;
  padding-left: 20px;
}

.experience-left h3 {
  margin: 0 0 5px 0;
  color: #35424a;
}

.experience-left p {
  margin: 4px 0;
}

.experience-right ul {
  padding-left: 20px;
  margin: 0;
}

.experience-right li {
  margin-bottom: 8px;
}

/* Responsive fallback */
@media (max-width: 768px) {
  .experience-item {
    flex-direction: column;
  }

  .experience-left {
    border-right: none;
    padding-right: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8491d;
  }

  .experience-right {
    padding-left: 0;
  }

