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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
  transition: background 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
}

.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-link {
  background: none;
  border: none;
  color: #212529;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 1rem;
  font-family: inherit;
}

.nav-link:hover {
  color: #ffb400;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: #212529;
  margin: 3px 0;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

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

.nav-link-mobile {
  background: none;
  border: none;
  color: #212529;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 1rem;
  text-align: left;
  padding: 0.5rem 0;
  font-family: inherit;
}

.nav-link-mobile:hover {
  color: #ffb400;
}

/* About Section */
.about-section {
  position: relative;
  padding: 6rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.background-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.background-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.background-slide.active {
  opacity: 1;
}

.background-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000cc;
  opacity: 0.8;
  z-index: 1;
}

.about-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #212529;
}

.section-title.white {
  color: white;
}

.profile-photo {
  margin-bottom: 2rem;
}

.profile-photo img {
  width: 256px;
  height: 256px;
  border-radius: 50%;
  border: 4px solid #ffb400;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.bio-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: white;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

/* Services Section */
.services-section {
  padding: 4rem 0;
  background-color: #ffb400;
}

.services-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.service-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-header {
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  background-color: #ffb400;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
}

.service-list li {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Portfolio Section */
.portfolio-section {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.portfolio-content {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 4 / 3;
}

.portfolio-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: grayscale(100%);
}

.portfolio-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.portfolio-overlay p {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ================= MAP SECTION ================= */

.map-section {
  margin-top: 4rem;
}

/* Título */
.map-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  text-align: center;
  margin-bottom: 2rem;
}

/* Contenedor general (centra y limita ancho) */
.map-wrap {
  width: 100%;
  max-width: 900px;          /* controla el ancho real */
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Área del mapa (proporción real) */
.map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;      /* 🔑 PROPORCIÓN CORRECTA */
  background-color: #f3f4f6;
}

/* Iframe del mapa */
.map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================= MAP MARKER ================= */

.map-marker-fixed {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.map-marker-fixed .marker-pin {
  width: 2rem;
  height: 2rem;
  background-color: #ffb400;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: pulseMarker 2s infinite;
  position: relative;
}

.map-marker-fixed .marker-label {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ffb400;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-marker-fixed:hover .marker-label {
  opacity: 1;
}

/* ================= INFO BELOW MAP ================= */

.map-info {
  background: white;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.map-info-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.map-info-icon {
  width: 2rem;
  height: 2rem;
  background-color: #ffb400;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.map-address {
  font-weight: 500;
  color: #212529;
}

.map-city {
  font-size: 0.875rem;
  color: #6b7280;
}

.map-info-right {
  text-align: right;
}

.map-hours-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.map-hours {
  font-weight: 500;
  color: #212529;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .map-wrap {
    border-radius: 12px;
  }

  .map-container {
    aspect-ratio: 4 / 3; /* un poco más alto en móvil */
  }

  .map-info {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .map-info-right {
    text-align: left;
  }
}

/* ================= ANIMATION ================= */

@keyframes pulseMarker {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(244, 98, 58, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
}

/* Footer */
.footer {
  background-color: #212529;
  color: white;
  padding: 2rem 0;
}

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

.footer-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-title {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background-color: #ffb400;
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 40;
}

.scroll-to-top:hover {
  background-color: #ff2600;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 3% auto;
  padding: 0;
  border-radius: 8px;
  width: 80%;
  max-width: 900px;
  height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #6b7280;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  color: #212529;
  background: rgba(255, 255, 255, 1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: white;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
  padding-right: 3rem;
}

.modal-subtitle {
  color: #6b7280;
  margin-bottom: 0;
}

.carousel-container {
  position: relative;
  flex: 1;
  background: #f3f4f6;
  min-height: 300px;
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.4s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
}

.carousel-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #ffb400;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.image-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10;
}

.modal-description {
  padding: 1.5rem;
  background: white;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  max-height: 120px;
  overflow-y: auto;
}

.modal-description p {
  color: #374151;
  line-height: 1.6;
  margin: 0;
  font-size: 0.875rem;
}

/* Contact Image */
.contact-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  height: 500px;
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.contact-image-container:hover .contact-image {
  transform: scale(1.05);
}

.contact-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.contact-image-container:hover .contact-image-overlay {
  transform: translateY(0);
}

.contact-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244, 98, 58, 0.9);
  padding: 0.75rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.contact-image-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .section-title {
    font-size: 2rem;
  }

  .profile-photo img {
    width: 200px;
    height: 200px;
  }

  .bio-text {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .contact-image-container {
    height: 400px;
  }

  .contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .contact-image-container:hover .contact-image {
    transform: scale(1.05);
  }

  .contact-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .contact-image-container:hover .contact-image-overlay {
    transform: translateY(0);
  }

  .contact-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(244, 98, 58, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    width: fit-content;
  }

  .contact-image-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .about-section {
    padding: 5rem 0 3rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .profile-photo img {
    width: 150px;
    height: 150px;
  }

  .service-card {
    padding: 1.5rem;
  }

  .contact-image-container {
    height: 300px;
  }

  .contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .contact-image-container:hover .contact-image {
    transform: scale(1.05);
  }

  .contact-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .contact-image-container:hover .contact-image-overlay {
    transform: translateY(0);
  }

  .contact-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(244, 98, 58, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    width: fit-content;
  }

  .contact-image-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background-color: white;
}

.contact-content {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-intro h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1.5rem;
}

.contact-intro p {
  color: #6b7280;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start; /* <- CLAVE */
  gap: 1rem;
}

.contact-icon {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: #ffb400;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-label {
  font-weight: 500;
  color: #212529;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: #6b7280;
}

.contact-form-container {
  background-color: #f9fafb;
  padding: 2rem;
  border-radius: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffb400;
  box-shadow: 0 0 0 3px rgba(244, 98, 58, 0.1);
}

.submit-btn {
  background-color: #ffb400;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #e55a35;
}
