      @font-face {
    font-family: 'Patria';
    font-style: normal;
    font-weight: 400;
    src: url("https://framework-gb.cdn.gob.mx/applications/cms/fonts/Patria_Regular.otf") format("opentype");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans", "Helvetica", "Arial", sans-serif;
    background-color: #f5f5f5;
    color: #404041;
}

/* Header Styles - Mantenemos los mismos del index */
.top-bar {
    background: linear-gradient(135deg, #611232, #8B2B4F);
    color: white;
    padding: 5px 20px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /*margin-top: 30px;*/
    gap: 30px;
}

.top-bar .condusef-text {
    font-weight: bold;
    font-size: 16px;
}

.top-bar .date-text {
    font-size: 14px;
}

/* Navigation */
.nav-bar {
    background: linear-gradient(135deg, #a57f2c, #B8860B);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Content Section */
.content-section {
    background: white;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Main Layout - Ajustado para sidebar más pequeña */
.main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Left Content */
.left-content {
    background: white;
    border-radius: 10px;
    padding: 0px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* RECA Logo and Title */
.reca-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 40px;
}

.reca-logo-container {
    background: linear-gradient(135deg, #f08826, #689F38);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    min-width: 200px;
    color: white;
}

.reca-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 10px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #2c5234;
}

.reca-description {
    font-size: 14px;
    line-height: 1.4;
}

/* Main Text Content */
.main-text h2 {
    color: #8B1538;
    font-size: 24px;
    margin-bottom: 20px;
}

.main-text p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Institution Types - Reducido espacio entre elementos */
.institution-types {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 15px 0;
}

.institution-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 1px 0;
}

.institution-dot {
    width: 6px;
    height: 6px;
    background-color: #f08826;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.institution-content {
    flex: 1;
}

.institution-name {
    font-weight: bold;
    color: #2c5234;
    font-size: 13px;
    margin-bottom: 1px;
    line-height: 1.2;
}

/* Contract Definition Box - Cambio de fondo */
.contract-definition {
    background: #F7FCDE;
    border-left: 5px solid #f08826;
    /*border-radius: 0 10px 10px 0;*/
    padding: 15px;
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.remember-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.remember-icon {
    background: #f08826;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
}

.remember-text {
    color: #2c5234;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}

.contract-definition-content h3 {
    color: #2c5234;
    font-size: 16px;
    margin-bottom: 10px;
}

.contract-definition-content p {
    color: #454545;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.star-icon {
    margin-left: auto;
    color: #ffd700;
    font-size: 30px;
    align-self: flex-start;
}

/* Contract Examples Section - Reducido espacio */
.contract-examples-section {
    margin: 20px 0;
}

.contract-examples-title {
    color: #383532;
    font-size: 16px;
    /*font-weight: bold;*/
    text-align: justify;
    padding: 1px 0;
    margin-bottom: 20px;
}

.contract-examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contract-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contract-icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.contract-icon {
    width: 40px;
    height: 40px;
    background: #e8f5e8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2c5234;
}

.contract-item {
    color: #333;
    font-size: 13px;
    padding: 1px 0;
    line-height: 1.2;
}
.icono-png {
  width: 92px;   /* tamaño */
  height: 92px;
}

/* Tabs for content switching */
.content-tabs {
    display: flex;
    background: #4DAEBD;
    border-radius: 10px 10px 0 0;
    margin-top: 30px;
    overflow-x: auto;
}

.tab-button {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
}

.tab-button:hover {
    background: rgba(255,255,255,0.1);
}

.tab-button.active {
    background: rgba(255,255,255,0.2);
}

.tab-content {
    background: white;
    padding: 30px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #8B1538;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #8B1538;
}
.tab-content h5 {
    color: #4b4d4b;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    /*border-bottom: 3px solid #8B1538;*/
}

.tab-content ul, .tab-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.tab-content li {
    margin-bottom: 8px;
    color: #444;
    line-height: 1.5;
}

.tab-content a {
    color: #8B1538;
    text-decoration: none;
}

.tab-content a:hover {
    text-decoration: underline;
}

/* Right Sidebar - Nuevo diseño inspirado en la imagen */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 250px;
    background: #fafcfc;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #d0e7ea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #4DAEBD;
    z-index: 1;
}

.sidebar-item {
    background: transparent;
    padding: 20px 25px;
    text-align: left;
    border: none;
    border-bottom: 1px solid rgba(77, 174, 189, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.sidebar-item:hover {
    background: rgba(77, 174, 189, 0.1);
    transform: translateX(5px);
}

.sidebar-item.active {
    background: rgba(77, 174, 189, 0.15);
    transform: translateX(5px);
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #4DAEBD;
    z-index: 2;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    background: #4DAEBD;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-item h3 {
    color: #595B66;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Privacy Notice */
.privacy-notice {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.privacy-notice a {
    color: #8B1538;
    text-decoration: none;
    display: inline-block;
}

.privacy-notice img {
    width: 40px;
    margin-bottom: 8px;
}

/* Card RECA */
.card-reca {
  width: 250px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  font-family: Arial, sans-serif;
  text-align: center;
}

.card-top {
  background: #fff;
  padding: 20px;
}

.card-top .logo-reca {
  max-width: 120px;
  display: block;
  margin: 0 auto 15px auto;
}

.card-top p {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.card-bottom {
  background: #f08826;
  padding: 20px;
}

.card-bottom .emoji {
  font-size: 40px;
  display: inline-block;
}

/* Header con título y descripción */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-family: "Patria", serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.circles-decoration {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.circle.green { background-color: #00A859; }
.circle.orange { background-color: #FF6B35; }

/* Responsive Design */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reca-header {
        flex-direction: column;
        text-align: center;
    }
    
    .reca-logo-container {
        min-width: auto;
        width: 100%;
    }
    
    .contract-examples-grid {
        grid-template-columns: 1fr;
    }
    
    .contract-definition {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-container {
        flex-direction: column;
    }

    .left-content {
        padding: 20px;
    }

    .content-tabs {
        flex-direction: column;
    }

    .tab-button {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .sidebar {
        order: -1;
        flex-direction: row;
        overflow-x: auto;
        gap: 0;
        max-width: none;
    }

    .sidebar-item {
        min-width: 120px;
        flex-shrink: 0;
        flex-direction: column;
        padding: 15px;
        text-align: center;
        gap: 8px;
    }

    .top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .contract-examples-grid {
        grid-template-columns: 1fr;
    }
}